Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Dec 21, 2024
1 parent 22139ec commit dfa2d7f
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ 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 @@ -31,14 +23,9 @@ 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 @@ -151,7 +138,6 @@ 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 @@ -173,7 +159,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 @@ -239,7 +225,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 dfa2d7f

Please sign in to comment.