From 912bd7d2a91c81e6a66c25b545b6cecba832ef95 Mon Sep 17 00:00:00 2001 From: pdtfh <149602456+pdtfh@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:00:02 +0100 Subject: [PATCH] fix release process (#9) --- .github/workflows/release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cd6d537..db2def33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: - uses: actions/checkout@v4 with: ref: main + token: ${{ secrets.GIT_HUB_TOKEN }} - name: Calculate new version id: version @@ -81,9 +82,8 @@ jobs: - name: Update version run: cargo set-version --package walletkit-core ${{ steps.version.outputs.new_version }} + # Commit uses GIT_HUB_TOKEN which has permissions to push (set on actions/checkout) - name: Commit and Push Changes - env: - GITHUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" @@ -165,10 +165,22 @@ jobs: permissions: contents: write steps: - - name: Create Release + - name: Create Release in main repo uses: softprops/action-gh-release@v2 with: name: ${{ needs.update-cargo-version.outputs.new_version }} tag_name: ${{ needs.update-cargo-version.outputs.new_version }} generate_release_notes: true make_latest: true + + - name: Create Release in swift repo + uses: softprops/action-gh-release@v2 + with: + repository: worldcoin/walletkit-swift + token: ${{ secrets.GIT_HUB_TOKEN }} + name: ${{ needs.update-cargo-version.outputs.new_version }} + tag_name: ${{ needs.update-cargo-version.outputs.new_version }} + body: | + ## Version ${{ needs.update-cargo-version.outputs.new_version }} + For full release notes, see the [main repo release](https://github.com/worldcoin/walletkit/releases/tag/${{ needs.update-cargo-version.outputs.new_version }}). + make_latest: true