Skip to content

Commit

Permalink
improving GH-3
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord of Scripts committed Aug 28, 2024
1 parent 0f46829 commit 2bcc467
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/crossbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.22.1'
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Set environment variable
run: echo "MY_APPTAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Get OS and arch info
run: |
GOOSARCH=${{matrix.goosarch}}
GOOS=${GOOSARCH%/*}
GOARCH=${GOOSARCH#*/}
APPVERSION=${{ steps.get_version.outputs.VERSION }}
APPVERSION=$MY_APPTAG
BINARY_NAME=${{github.repository}}-$GOOS-$GOARCH-$APPVERSION
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
echo "GOOS=$GOOS" >> $GITHUB_ENV
Expand Down

0 comments on commit 2bcc467

Please sign in to comment.