elli-website/.forgejo/workflows/deploy.yml

38 lines
792 B
YAML
Raw Normal View History

2023-08-16 13:54:59 +02:00
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo.git@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build
run: |
npm i
hugo --minify
- name: Deploy
2023-08-16 14:00:38 +02:00
uses: https://github.com/peaceiris/actions-gh-pages@v3
2023-08-16 13:54:59 +02:00
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
2023-08-16 14:03:29 +02:00
publish_branch: pages