Skip to content

Commit

Permalink
Revert "stuff"
Browse files Browse the repository at this point in the history
This reverts commit dfa2d7f.
  • Loading branch information
newhoggy committed Jan 22, 2025
1 parent dfa2d7f commit e52173c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
workflow_dispatch:
inputs:
ref:
description: "The commit, branch, or tag to build"
required: true
default: "main"

jobs:
build:
Expand All @@ -23,9 +31,14 @@ jobs:
- ghc: "9.6.6"
os: macOS-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

with:
ref: ${{ github.event.inputs.ref }} # Checkout the specified branch, tag, or commit

- uses: haskell-actions/setup@v2
id: setup-haskell
with:
Expand Down Expand Up @@ -138,6 +151,7 @@ jobs:
server: http://hackage.haskell.org
username: ${{ secrets.HACKAGE_USER }}
password: ${{ secrets.HACKAGE_PASS }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
package_version="$(cat *.cabal | grep '^version:' | cut -d : -f 2 | xargs)"
Expand All @@ -159,7 +173,7 @@ jobs:
needs: [build, check]
runs-on: ubuntu-latest

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

outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
Expand Down Expand Up @@ -225,7 +239,7 @@ jobs:

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

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

strategy:
fail-fast: false
Expand Down

0 comments on commit e52173c

Please sign in to comment.