From 0e2f83b6231cdf34d0f6f8a1cc6e6c985dae09d5 Mon Sep 17 00:00:00 2001 From: axherrm Date: Sun, 4 Feb 2024 01:19:29 +0100 Subject: [PATCH] add release workflow --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..dd92024 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release +on: + repository_dispatch: + types: [release] + +jobs: + release: + name: Release new version + runs-on: ubuntu-latest + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the added or changed files to the repository. + contents: write + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: true + - name: Git Submodule Update + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + - name: Commit updated submodule + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Release ${{ github.event.client_payload.version }} + push_options: --force + - name: Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ github.event.client_payload.version }}