Merge pull request #125 from RiKap/dependabot/npm_and_yarn/types/node… #96
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: Main Workflow | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
- name: Setup npm | |
run: | | |
npm install | |
- name: Build website | |
run: | | |
npm run build:prod && \ | |
rm -rf ./public/{css,js,img}/* | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./public | |
cname: richardkapicka.cz | |
enable_jekyll: false | |
allow_empty_commit: true | |
force_orphan: true |