Skip to content

Commit 5a3d111

Browse files
authored
Merge pull request #5 from Fryguy/add_release_workflow
Add release workflow for updating the v1 branch on new release
2 parents e84c929 + 74745d5 commit 5a3d111

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Update the v1 branch when a release is published
2+
on:
3+
release:
4+
types: [published]
5+
permissions:
6+
contents: read
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write # for git push
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- run: git push origin HEAD:v1

0 commit comments

Comments
 (0)