blog.lumeweb.com/.github/workflows/publish.yml

30 lines
793 B
YAML

name: GitHub Pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Build
run: hugo --minify
- name: Deploy
uses: LumeWeb/web3.news-publisher@0.1
if: github.ref == 'refs/heads/master'
with:
node: ${{ secrets.NODE }}
seed: ${{ secrets.SEED }}