Skip to content

Commit

Permalink
Fix release job
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Jan 26, 2025
1 parent 22139ec commit 580ac53
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ jobs:
env:
server: http://hackage.haskell.org
username: ${{ secrets.HACKAGE_USER }}
password: ${{ secrets.HACKAGE_PASS }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# password: ${{ secrets.HACKAGE_PASS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
package_version="$(cat *.cabal | grep '^version:' | cut -d : -f 2 | xargs)"
Expand All @@ -173,7 +173,7 @@ jobs:
needs: [build, check]
runs-on: ubuntu-latest

if: startsWith(github.ref, 'refs/tags/v')
if: ${{ needs.check.outputs.tag != '' }}

outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
Expand Down Expand Up @@ -222,11 +222,15 @@ jobs:
fi
done
- name: Debug
run: |
echo "tag=${{ needs.check.outputs.tag }}"
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.check.outputs.tag }}
release_name: Release ${{ needs.check.outputs.tag }}
Expand All @@ -239,7 +243,7 @@ jobs:

runs-on: ${{ matrix.os }}

if: startsWith(github.ref, 'refs/tags/v')
if: ${{ needs.check.outputs.tag != '' }}

strategy:
fail-fast: false
Expand Down

0 comments on commit 580ac53

Please sign in to comment.