Skip to content

Commit

Permalink
ci(#patch): Updated the secrets and actions to follow current best pr… (
Browse files Browse the repository at this point in the history
#25)

ci(#patch): Updated the secrets and actions to follow current best practice for releases
  • Loading branch information
riweston authored Mar 20, 2024
1 parent ae3e129 commit cd1f3fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ jobs:
goreleaser:
name: "CD: Release"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: "${{ secrets.DEPLOY_KEY }}"
- uses: arnested/go-version-action@v1
id: go-version
- name: Set up Go
uses: actions/setup-go@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go-version.outputs.latest }}
check-latest: true
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/cd.tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
versionbumper:
name: "CD: Tagging"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">aztx</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000" />
<img src="https://img.shields.io/badge/go-%3E%3D1.16.6-blue.svg" />
<a href="https://github.com/riweston/aztx#readme" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
Expand Down

0 comments on commit cd1f3fe

Please sign in to comment.