Skip to content

Commit 7675c83

Browse files
authored
ci: use stable tag instead of branch (#98)
1 parent a68d8dc commit 7675c83

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
name: Deploy
1+
name: Release
22
on:
3-
push:
4-
branches:
5-
- 'stable'
6-
workflow_dispatch:
3+
release:
4+
types: [published]
75

86
jobs:
97
prod:
10-
name: Production
8+
name: Deploy production
119
runs-on: ubuntu-20.04
12-
if: github.ref == 'refs/heads/stable'
1310

1411
steps:
1512
- uses: actions/checkout@v3
@@ -21,3 +18,13 @@ jobs:
2118
- run: npm run deploy:prod -- -r https://git:${DEPLOYMENT_PAT}@github.com/thetolproject/thetolproject.github.io.git -u "${GITHUB_ACTOR} <${GITHUB_ACTOR}@users.noreply.github.com>"
2219
env:
2320
DEPLOYMENT_PAT: ${{ secrets.DEPLOYMENT_PAT }}
21+
22+
tags:
23+
name: Update tags
24+
runs-on: ubuntu-20.04
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: EndBug/latest-tag@v1
29+
with:
30+
ref: stable

0 commit comments

Comments
 (0)