chore: use gha instead of drone (#319) #3
This file contains 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: | |
- master | |
name: release-please | |
jobs: | |
release-please: | |
runs-on: arc-runner | |
steps: | |
- name: Setup Secrets | |
run: | | |
echo GITHUB_APP_ID="$(cat /secrets/github-app-id)" >> "$GITHUB_ENV" | |
{ | |
echo 'GITHUB_PRIVATE_KEY<<EOF' | |
cat /secrets/github-private-key | base64 -d | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: Get token | |
id: get_token | |
uses: actions/create-github-app-token@v1 | |
with: | |
private-key: ${{ env.GITHUB_PRIVATE_KEY }} | |
app-id: ${{ env.GITHUB_APP_ID }} | |
- name: Checkout | |
uses: actions/[email protected] | |
- uses: google-github-actions/release-please-action@v4 | |
with: | |
token: "${{ steps.get_token.outputs.token }}" | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json |