Skip to content

Commit

Permalink
test release with custom token
Browse files Browse the repository at this point in the history
  • Loading branch information
1xstj committed Dec 5, 2024
1 parent 0b85083 commit 8eee2d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- trigger-binary-on-release

jobs:
create-pre-release:
Expand All @@ -22,10 +23,19 @@ jobs:
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
# Generating a GitHub token, so that PRs and tags created by
# the release-plz-action can trigger actions workflows.
- name: Generate GitHub token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.WEBB_SPIDER_APP_ID }}
private-key: ${{ secrets.WEBB_SPIDER_PRIV_KEY }}

- name: Create pre-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
with:
tag_name: ${{ steps.commit_info.outputs.sha_short }}
release_name: Tangle Pre-release ${{ steps.commit_info.outputs.sha_short }}
Expand Down

0 comments on commit 8eee2d9

Please sign in to comment.