Skip to content

Commit

Permalink
Merge pull request #27 from anatawa12/use-github-app-instead-of-pat
Browse files Browse the repository at this point in the history
ci(publish): use github app instead of my PAT
  • Loading branch information
anatawa12 authored Mar 11, 2024
2 parents b4e4b11 + 820dc00 commit 5103927
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,23 @@ jobs:
publish:
name: Publish to GitHub
environment:
name: master branch
name: actions-github-app
url: https://github.com/${{ github.repository }}/releases/v${{ needs.pre-build.outputs.version }}
permissions:
contents: write
runs-on: ubuntu-latest
needs: [publish-crates-io, pre-build]
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: 'releasing'
fetch-depth: 2
token: ${{ secrets.MASTER_GITHUB_PAT }}
token: ${{ steps.app-token.outputs.token }}

# tools
- uses: anatawa12/something-releaser@v3
Expand Down

0 comments on commit 5103927

Please sign in to comment.