File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : Build and deploy
22
33on :
44 push :
@@ -11,16 +11,13 @@ permissions:
1111
1212jobs :
1313 build :
14-
1514 runs-on : ubuntu-latest
16-
1715 steps :
1816 - uses : actions/checkout@v4
1917 - uses : actions/setup-haskell@v1
2018 with :
2119 ghc-version : ' 9.10.1'
2220 cabal-version : ' 3.12.1.0'
23-
2421 - name : Cache
2522 uses : actions/cache@v3
2623 env :
3229 ${{ runner.os }}-build-${{ env.cache-name }}-
3330 ${{ runner.os }}-build-
3431 ${{ runner.os }}-
35-
3632 - name : Install dependencies
3733 run : |
3834 cabal update
4137 run : cabal build
4238 - name : Build static website
4339 run : cabal exec site build
44- - uses : actions/upload-artifact@v4
45- with :
46- name : build
47- path : _site
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@v3
42+
43+ deploy :
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ needs : build
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments