diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 93e6498..34cc365 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -60,3 +60,31 @@ jobs: draft: true files: Bloxstrap-${{ github.ref_name }}.exe name: Bloxstrap ${{ github.ref_name }} + + release-test: + needs: build + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/release-test') + + steps: + - name: Sign and download artifact + uses: signpath/github-action-submit-signing-request@v1 + with: + api-token: '${{ secrets.SIGNPATH_API_TOKEN }}' + organization-id: '107b3de5-057b-42fc-a985-3546e4261775' + project-slug: 'bloxstrap' + signing-policy-slug: 'test-signing' + artifact-configuration-slug: 'github-ci' + github-artifact-id: '${{ needs.build.outputs.artifact-id }}' + wait-for-completion: true + output-artifact-directory: 'release' + + - name: Rename binaries + run: mv release/Bloxstrap.exe Bloxstrap-${{ github.ref_name }}.exe + + - name: Create release + uses: softprops/action-gh-release@v2 + with: + draft: true + files: Bloxstrap-${{ github.ref_name }}.exe + name: Bloxstrap ${{ github.ref_name }}