Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- id: release-bot
name: Authenticate with Release Bot
uses: getsentry/action-github-app-token@v1
with:
app_id: ${{ secrets.CB_RELEASE_BOT_ID }}
private_key: "${{ secrets.CB_RELEASE_BOT_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ steps.release-bot.outputs.token }}
fetch-depth: 0

- uses: actions/setup-go@v2
Expand All @@ -28,17 +20,23 @@ jobs:

- name: Install Git SemVer
run: go install .

# - name: Setup Git Credentials
# uses: fusion-engineering/setup-git-credentials@v2
# with:
# credentials: https://${{ secrets.CB_RELEASE_BOT_NAME }}:${{ steps.release-bot.outputs.token }}@github.com/

- name: Bump Version
- id: release-bot
name: Authenticate with Release Bot
uses: getsentry/action-github-app-token@v1
with:
app_id: ${{ secrets.CB_RELEASE_BOT_ID }}
private_key: "${{ secrets.CB_RELEASE_BOT_PRIVATE_KEY }}"

- name: Configure Git
run: |
git config --global user.name "${{ secrets.CB_RELEASE_BOT_NAME }}"
git config --global user.email "${{ secrets.CB_RELEASE_BOT_EMAIL }}"
git semver bump
git config --local --replace-all url.https://github.com/.insteadOf ssh://git@github.com/
git config --local --add url.https://git:${{ steps.release-bot.outputs.token }}@github.com/.insteadOf git@github.com:

- name: Bump Version
run: git semver bump

- name: GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down