Skip to content

Merge pull request #133 from RiKap/dependabot/npm_and_yarn/vite-5.4.10 #102

Merge pull request #133 from RiKap/dependabot/npm_and_yarn/vite-5.4.10

Merge pull request #133 from RiKap/dependabot/npm_and_yarn/vite-5.4.10 #102

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