Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit f7cacf0

Browse files
committed
feat: created CD pipeline
1 parent 052860f commit f7cacf0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/cd.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI/CD
2+
on:
3+
release:
4+
types: [released]
5+
workflow_dispatch:
6+
7+
jobs:
8+
cd:
9+
runs-on: ubuntu-latest
10+
name: "CD"
11+
timeout-minutes: 30
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- uses: shivammathur/[email protected]
17+
with:
18+
php-version: 8.0
19+
extensions: mbstring, bcmath, ctype, json, pdo, tokenizer, xml
20+
21+
- name: Update Changelog
22+
uses: stefanzweifel/changelog-updater-action@v1
23+
with:
24+
latest-version: ${{ github.event.release.name }}
25+
release-notes: ${{ github.event.release.body }}
26+
27+
- name: Commit updated files to repository
28+
uses: stefanzweifel/git-auto-commit-action@v4
29+
with:
30+
branch: "main"
31+
commit_message: "docs: updated CHANGELOG.md"
32+
commit_user_name: "Cleat GitHub Actions Bot"
33+
commit_user_email: "[email protected]"
34+
commit_author: "Cleat GitHub Actions Bot <[email protected]>"
35+
36+
- name: Send Slack notification
37+
uses: 8398a7/[email protected]
38+
if: success()
39+
with:
40+
status: ${{ job.status }}
41+
author_name: ${{ github.actor }}
42+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
43+
env:
44+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)