From 38d0f71db0f69504d323b18c9132a9f54e9c08fb Mon Sep 17 00:00:00 2001 From: futabooo Date: Sat, 6 Apr 2024 00:07:25 +0900 Subject: [PATCH] add manual release workflow --- .github/workflows/release.yaml | 33 +++++++++++++++++++++++++++++++++ a | 11 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 a diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..daf271c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,33 @@ +name: release + +on: + workflow_dispatch: + inputs: + tag: + description: "The tag name of the release" + required: true + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: {} + steps: + - name: Check ref + if: !startsWith(github.ref, 'refs/tags/') + run: | + echo "This action should only be run on tag" + exit 1 + + release: + needs: [check] + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Release + uses: ./.github/actions/release + with: + tag: ${{ github.ref_name }} diff --git a/a b/a new file mode 100644 index 0000000..cf2b995 --- /dev/null +++ b/a @@ -0,0 +1,11 @@ +create release workflow +# Please enter the commit message for your changes. Lines starting +# with '#' will be ignored, and an empty message aborts the commit. +# +# On branch create-release-workflow +# Changes to be committed: +# new file: .github/actions/release/action.yaml +# new file: .github/workflows/tagpr.yaml +# new file: .tagpr +# modified: package.json +#