From eb4d3139844513cc44b133c2cc104e650f811d64 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 24 Nov 2021 00:30:44 +0900 Subject: [PATCH] Create release GH action to tag v1 v1 is dynamic tag for ^1.0 --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3e55ad7 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}