Skip to content

Commit

Permalink
Refactor release job conditions and update version extraction in GitH…
Browse files Browse the repository at this point in the history
…ub Actions workflow
ndonathan committed Nov 17, 2024
1 parent aa39626 commit 5556a12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ on:
push:
branches:
- main
tags:
- 'v1.1.*'
tags:
- 'v1.1.*'

jobs:
build:
@@ -44,6 +44,7 @@ jobs:
!fyne-cross/dist/*/deps/
release:
if: startsWith(github.ref, 'refs/tags/')
needs: [build]
runs-on: ubuntu-latest
steps:
@@ -54,7 +55,7 @@ jobs:

- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
run: echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT

- name: Create Release
id: create_release
@@ -73,7 +74,7 @@ jobs:
zip -r ../go_tasks.zip ./*
- name: Upload Release Assets
uses: actions/upload-release-asset@v2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:

0 comments on commit 5556a12

Please sign in to comment.