Ajout d'un article sur les habitudes #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On push, publish the new website | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# ================================================================================================================ | |
- name: Retrieve the sources | |
uses: actions/checkout@v3 | |
# ================================================================================================================ | |
- name: Hugo setup | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: '0.106.0' | |
extended: true | |
# ================================================================================================================ | |
- name: Node setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# ================================================================================================================ | |
- name: Npm install | |
run: npm install | |
# ================================================================================================================ | |
- name: Build Hugo website in the beta directory | |
run: hugo --minify --gc --baseURL=https://straumat.github.io/second-cerveau/ | |
# ================================================================================================================ | |
- name: Deploy the website to github pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: public | |
commit-message: "Website deployment" | |
clean: true |