Skip to content

Commit

Permalink
ci: add a github action to create a branch when a tag is created
Browse files Browse the repository at this point in the history
The branch will have the same name as the tag. Will be used to generate a cloudflare pages permalink for old versions of the app.
  • Loading branch information
mgreminger committed Jan 15, 2025
1 parent a28568d commit 4fb62c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
tags:
- '*'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: create branch
run: |
git config user.name "github-actions[bot]"
git config user.email "[email protected]"
git checkout -b ${{ github.ref_name }}
git push -u origin ${{ github.ref_name }}

0 comments on commit 4fb62c9

Please sign in to comment.