diff options
Diffstat (limited to '.forgejo/workflows/publish-release.yml')
-rw-r--r-- | .forgejo/workflows/publish-release.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.forgejo/workflows/publish-release.yml b/.forgejo/workflows/publish-release.yml new file mode 100644 index 0000000..eb93aa6 --- /dev/null +++ b/.forgejo/workflows/publish-release.yml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: MIT +# +# https://invisible.forgejo.org/forgejo/runner +# +# Copies & sign a release from code.forgejo.org/forgejo-integration/runner to code.forgejo.org/forgejo/runner +# +# vars.FORGEJO: https://code.forgejo.org +# vars.FROM_OWNER: forgejo-integration +# vars.TO_OWNER: forgejo +# vars.DOER: release-team +# secrets.TOKEN: <generated from code.forgejo.org/release-team> +# secrets.GPG_PRIVATE_KEY: <XYZ> +# secrets.GPG_PASSPHRASE: <ABC> +# +name: publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: lxc-bookworm + if: vars.DOER != '' && vars.FORGEJO != '' && vars.TO_OWNER != '' && vars.FROM_OWNER != '' && secrets.TOKEN != '' + steps: + - uses: https://data.forgejo.org/actions/checkout@v4 + + - name: copy & sign + uses: https://data.forgejo.org/forgejo/forgejo-build-publish/publish@v5.3.1 + with: + from-forgejo: ${{ vars.FORGEJO }} + to-forgejo: ${{ vars.FORGEJO }} + from-owner: ${{ vars.FROM_OWNER }} + to-owner: ${{ vars.TO_OWNER }} + repo: "runner" + release-notes: "See https://code.forgejo.org/forgejo/runner/src/branch/main/RELEASE-NOTES.md#{ANCHOR}" + ref-name: ${{ github.ref_name }} + sha: ${{ github.sha }} + container-suffixes: " " + from-token: ${{ secrets.TOKEN }} + to-doer: ${{ vars.DOER }} + to-token: ${{ secrets.TOKEN }} + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + verbose: ${{ vars.VERBOSE }} |