From 720b4f1afee4a4db7533f95d7639ad7f91e42e4a Mon Sep 17 00:00:00 2001 From: sweet-jelly <136777932+sweet-jelly@users.noreply.github.com> Date: Mon, 23 Sep 2024 03:07:08 +0300 Subject: [PATCH] Create trigger-release.yml --- .github/workflows/trigger-release.yml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/trigger-release.yml diff --git a/.github/workflows/trigger-release.yml b/.github/workflows/trigger-release.yml new file mode 100644 index 00000000000000..bf4f9512120a90 --- /dev/null +++ b/.github/workflows/trigger-release.yml @@ -0,0 +1,40 @@ +--- +name: "manually-trigger-release" + +on: + workflow_dispatch: + inputs: + tag: + description: 'Test scenario tags' + required: false + type: string + +jobs: + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: '0' + ref: $GITHUB_REF_NAME + + - name: Pack archive + run: | + tar -caf archlinux-linux-$GITHUB_REF_NAME.tar.gz * + sha512sum archlinux-linux-$GITHUB_REF_NAME.tar.gz.sha512 + + - name: "Release" + run: | + echo "done!" + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + archlinux-linux-$GITHUB_REF_NAME.tar.gz + archlinux-linux-$GITHUB_REF_NAME.tar.gz.sha512 + +