Skip to content

Commit

Permalink
fix: update ci and make a release to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
denouche committed May 31, 2024
1 parent a7dc2af commit 5ace951
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.14
go-version: '^1.20'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,25 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token

- name: Release
id: release
uses: cycjimmy/semantic-release-action@5982a02995853159735cb838992248c4f0f16166 # v2
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 17.4.7
branches: |
[
'main'
]
extra_plugins: |
@semantic-release/commit-analyzer@8.0.1
@semantic-release/release-notes-generator@9.0.3
@semantic-release/changelog@5.0.1
@semantic-release/git@9.0.1
@semantic-release/github@7.2.3
@semantic-release/commit-analyzer@12.0.0
@semantic-release/release-notes-generator@13.0.0
@semantic-release/changelog@6.0.3
@semantic-release/git@10.0.1
@semantic-release/github@10.0.5
env:
GIT_CREDENTIALS: git:${{ secrets.PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5ace951

Please sign in to comment.