Skip to content

Commit

Permalink
fix haddock workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
evermake committed Aug 23, 2024
1 parent bfd3196 commit 33bbcc0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/haddock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,7 +20,7 @@ jobs:
stack-version: 'latest'

- name: Build Haddock
run: stack build --haddock
run: stack haddock free-foil-hm

- name: Detect Haddock path
run: echo "HADDOCK_DIR_PATH=$(stack path --local-doc-root)" >> $GITHUB_ENV
Expand All @@ -35,18 +30,23 @@ jobs:
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.HADDOCK_DIR_PATH }}

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
needs:
- build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/upload-pages@v2
uses: actions/deploy-pages@v4

0 comments on commit 33bbcc0

Please sign in to comment.