Skip to content

Commit

Permalink
fix: update gocross version
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod committed Nov 7, 2024
1 parent 8fbfd76 commit 45767a8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 44 deletions.
92 changes: 50 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,59 @@ name: release

on:
push:
branches: [master]
branches: [master,main]

jobs:

goreleaser:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
id: vars
run: |
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
echo "Using Go version ${goVersion}"
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: release dry run
run: make release-dry-run
- uses: go-semantic-release/action@v1
id: semantic
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Git config for tagging
if: steps.semantic.outputs.version != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Update tags
if: steps.semantic.outputs.version != ''
run: |
TAG=v${{ steps.semantic.outputs.version }}
git push origin :refs/tags/${TAG}
git tag -fa ${TAG} -m "release v${{ steps.semantic.outputs.version }}"
git push origin ${TAG}
- name: setup release environment
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: release publish
run: make release
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
id: vars
run: |
goVersion=$(grep '^FROM go' .github/go/Dockerfile | cut -d ' ' -f 2 | cut -d ':' -f 2)
echo "go_version=${goVersion}" >> $GITHUB_OUTPUT
echo "Using Go version ${goVersion}"
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.vars.outputs.go_version }}
-
name: release dry run
run: make release-dry-run
-
uses: go-semantic-release/action@v1
id: semantic
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Git config for tagging
if: steps.semantic.outputs.version != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
-
name: Update tags
if: steps.semantic.outputs.version != ''
run: |
TAG=v${{ steps.semantic.outputs.version }}
git push origin :refs/tags/${TAG}
git tag -fa ${TAG} -m "release v${{ steps.semantic.outputs.version }}"
git push origin ${TAG}
-
name: setup release environment
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
-
name: release publish
run: make release
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME := github.com/hazcod/enpass-cli
GOLANG_CROSS_VERSION ?= v1.17.6
GOLANG_CROSS_VERSION ?= v1.23.2-0

SYSROOT_DIR ?= sysroots
SYSROOT_ARCHIVE ?= sysroots.tar.bz2
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hazcod/enpass-cli

go 1.17
go 1.23

require (
github.com/atotto/clipboard v0.1.4
Expand Down

0 comments on commit 45767a8

Please sign in to comment.