diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1a95fb..0b34cf8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,26 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Update binary package + run: > + sed -i '' + -e "s#/[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}/#/${{ github.event.client_payload.tag }}/#" + -e "s/[a-fA-F0-9]\{64\}/${{ github.event.client_payload.checksum }}/" + Package.swift + - name: Configure author + run: | + git config --global user.name SimplyDanny + git config --global user.email null + - name: Commit + run: | + git add Package.swift + git commit -m "Release ${{ github.event.client_payload.tag }}" + - name: Push changes + run: git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: ncipollo/release-action@v1 with: name: ${{ github.event.client_payload.title }}