Skip to content

Commit

Permalink
fix github workflow (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
emekoi committed Dec 15, 2023
1 parent 12ab16f commit b934246
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ concurrency:
cancel-in-progress: true

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Runs on pushes targeting the default branch
push:
branches: [$default-branch]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: GHC ${{ matrix.ghc-version }} on ${{ matrix.os }}
Expand Down Expand Up @@ -71,9 +70,18 @@ jobs:
path: ${{ steps.setup.outputs.cabal-store }}
key: ${{ steps.cache.outputs.cache-primary-key }}

- name: Build Hakyll
- name: Build site
run: |
cabal build all
cabal exec site build
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '_site/'

deploy:
runs-on: ubuntu-latest
Expand All @@ -85,18 +93,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Build Site
run: |
cabal exec site build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '_site/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit b934246

Please sign in to comment.