From 20b87512bdcefd468eb9ea5f3fa47b6df58192cf Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 23 May 2023 23:07:04 +0200 Subject: [PATCH] workflow to publish the release from integration --- .forgejo/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ .forgejo/workflows/release.yml | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/publish.yml diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..8ff80dc --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Publish release + +on: + push: + tags: 'v*' + +jobs: + release: + runs-on: self-hosted + if: github.repository_owner == 'forgejo-release' && secrets.TOKEN != '' + steps: + - uses: actions/checkout@v3 + + - name: download release + uses: https://code.forgejo.org/actions/forgejo-release@v1 + with: + url: https://code.forgejo.org + repo: forgejo-integration/runner + direction: download + release-dir: release + token: ${{ secrets.TOKEN }} + + - name: upload release + uses: https://code.forgejo.org/actions/forgejo-release@v1 + with: + url: https://code.forgejo.org + repo: forgejo/runner + direction: upload + release-dir: release + release-notes: "RELEASE-NOTES#${{ steps.build.outputs.tag }}" + token: ${{ secrets.TOKEN }} diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 46adbd5..874f733 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -1,4 +1,4 @@ -name: Publish release +name: Build release on: push: