Skip to content

Commit

Permalink
Create release GH action to tag v1
Browse files Browse the repository at this point in the history
v1 is dynamic tag for ^1.0
  • Loading branch information
koriym committed Nov 23, 2021
1 parent ffa54a5 commit eb4d313
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release v1
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
name: Release
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: |
git tag -f v1
git push -f origin v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eb4d313

Please sign in to comment.