From a46c41a0adb37e8bda8b494377bb9dc25ea9b543 Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:25:40 +0400 Subject: [PATCH] ci: add workflow for manual release --- .github/workflows/release-manual.yaml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release-manual.yaml diff --git a/.github/workflows/release-manual.yaml b/.github/workflows/release-manual.yaml new file mode 100644 index 00000000..b0be639a --- /dev/null +++ b/.github/workflows/release-manual.yaml @@ -0,0 +1,32 @@ +name: release for roller +on: + release: + types: [created] + +jobs: + release: + name: manual release + runs-on: ubuntu-latest + permissions: + pull-requests: write + actions: read + contents: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: '0' + + - name: Set up Go + uses: actions/setup-go@v5 + with: + check-latest: true + go-version-file: go.mod + + - name: Setup release environment + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: |- + echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env + + - name: Release publish + run: make release