ci: setup

This commit is contained in:
Derrick Hammer 2023-12-27 23:55:03 -05:00
parent 6db2391efe
commit ae9c08a478
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 29 additions and 0 deletions

29
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,29 @@
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 }}