-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.12 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This workflow triggers the release process after code check is completed
#
name: Release
run-name: ${{ github.event.workflow_run.head_commit.message }} [${{ github.event.workflow_run.id }}]
# Controls when the action will run.
on:
workflow_run:
workflows: [Checks]
types: [completed]
branches: [main, next, beta, alpha]
concurrency:
group: ${{ github.workflow }}_${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true
jobs:
visual-test:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: '▶️ actions'
uses: ./.github/workflows/visual-test.yml
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
semantic-release:
name: '▶️ actions'
needs: [visual-test]
uses: ./.github/workflows/semantic-release.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
publish:
name: '▶️ actions'
needs: [semantic-release]
uses: ./.github/workflows/publish.yml
secrets:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ID: ${{ secrets.CLOUDFLARE_ID }}