Skip to content

Commit 432bd8f

Browse files
Update release.yml
1 parent 366cea8 commit 432bd8f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
run: yarn install
2222
- name: Test
2323
run: yarn test
24+
- uses: 8398a7/action-slack@v1
25+
with:
26+
type: failure
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
30+
if: failure()
2431

2532
release:
2633
name: Publish Package
@@ -77,6 +84,13 @@ jobs:
7784
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7885
BRANCH: gh-pages
7986
FOLDER: gh-pages
87+
- uses: 8398a7/action-slack@v1
88+
with:
89+
type: failure
90+
env:
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
93+
if: failure()
8094

8195
releases:
8296
name: Upload build files
@@ -97,3 +111,22 @@ jobs:
97111
asset_name: jquery.marker-animation.min.js
98112
tag: ${{ github.ref }}
99113
overwrite: true
114+
- uses: 8398a7/action-slack@v1
115+
with:
116+
type: failure
117+
env:
118+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
120+
if: failure()
121+
122+
slack:
123+
name: Slack
124+
needs: [release, pages, releases]
125+
runs-on: ubuntu-latest
126+
steps:
127+
- uses: 8398a7/action-slack@v1
128+
with:
129+
type: success
130+
env:
131+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)