Skip to content

Commit

Permalink
ci(release): rework release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Mar 12, 2024
1 parent 05b24e6 commit 937659f
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,39 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.OKP4_TOKEN }}

- name: Setup Go environment
uses: actions/[email protected]
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
go-version: "1.21"
gpg_private_key: ${{ secrets.OKP4_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.OKP4_BOT_GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Release project
uses: cycjimmy/semantic-release-action@v2
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 19.0.2
semantic_version: 22.0.5
branch: main
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
@google/semantic-release-replace-plugin
semantic-release-replace-plugin@1.2.7
extends: |
conventional-changelog-conventionalcommits
conventional-changelog-conventionalcommits@7.0.1
env:
GITHUB_TOKEN: ${{ secrets.OKP4_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.OKP4_BOT_GIT_AUTHOR_NAME }}
Expand Down

0 comments on commit 937659f

Please sign in to comment.