File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Sample workflow for building and deploying a Hugo site to GitHub Pages
2- name : Deploy Hugo Site to Pages
2+ name : Deploy Hugo site to Pages
33
44on :
55 # Runs on pushes targeting the default branch
4040 run : |
4141 wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4242 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
43- # TODO: Figure out if this step is needed when only using css (I hate snap)
4443 - name : Install Dart Sass
4544 run : sudo snap install dart-sass
4645 - name : Checkout
8281 uses : actions/upload-pages-artifact@v3
8382 with :
8483 path : ./public
84+
85+ # Deployment job
86+ deploy :
87+ environment :
88+ name : github-pages
89+ url : ${{ steps.deployment.outputs.page_url }}
90+ runs-on : ubuntu-latest
91+ needs : build
92+ steps :
93+ - name : Deploy to GitHub Pages
94+ id : deployment
95+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments