update deps #757
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - v3 | |
| name: release-please | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| packages: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| release-type: go | |
| target-branch: ${{ github.ref_name }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-go@v4 | |
| if: ${{ steps.release.outputs.release_created }} | |
| with: | |
| go-version: "^1.23" | |
| - name: Upload URL | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| echo 'Upload to ${{ steps.release.outputs.upload_url }}' | |
| - name: Debug token permissions | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| echo "Testing GitHub API access..." | |
| curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/jm33-m0/emp3r0r | |
| - name: Create archive and upload assets | |
| if: ${{ steps.release.outputs.release_created }} | |
| run: | | |
| cd core || exit 1 | |
| ls -lah | |
| chmod 755 ./emp3r0r | |
| TAG=v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} ./emp3r0r --release || exit 2 | |
| mv emp3r0r.tar.zst emp3r0r-v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.tar.zst || exit 3 | |
| ls -lah | |
| bash ./upload.sh github_api_token=${{ secrets.GITHUB_TOKEN }} owner=jm33-m0 repo=emp3r0r tag=v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} filename=./emp3r0r-v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.tar.zst |