File tree Expand file tree Collapse file tree 1 file changed +10
-24
lines changed
Expand file tree Collapse file tree 1 file changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ concurrency:
1313 cancel-in-progress : false
1414
1515jobs :
16- build :
16+ deploy :
1717 runs-on : ubuntu-latest
18+ permissions :
19+ contents : write
1820 env :
1921 HUGO_VERSION : 0.152.2
2022 steps :
2123 - name : Checkout
22- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
24+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
2325
2426 - name : Install Hugo CLI
2527 run : |
3335 working-directory : ./docs
3436 run : npm install -D postcss postcss-cli autoprefixer
3537
36- - name : Setup Pages
37- id : pages
38- uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
39-
4038 - name : Build with Hugo
4139 env :
4240 HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
@@ -47,23 +45,11 @@ jobs:
4745 hugo \
4846 --gc \
4947 --minify \
50- --baseURL "${{ steps.pages.outputs.base_url }}/"
51-
52- - name : Upload Artifact
53- uses : actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
54- with :
55- path : ./docs/public
48+ --baseURL "https://z5labs.github.io/journeys/"
5649
57- deploy :
58- runs-on : ubuntu-latest
59- needs : [ build ]
60- permissions :
61- pages : write
62- id-token : write
63- environment :
64- name : github-pages
65- url : ${{ steps.deployment.outputs.page_url }}
66- steps :
6750 - name : Deploy to Github Pages
68- id : deployment
69- uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
51+ uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
52+ with :
53+ github_token : ${{ secrets.GITHUB_TOKEN }}
54+ publish_dir : ./docs/public
55+ exclude_assets : ' pr-preview'
You can’t perform that action at this time.
0 commit comments