ci: setup
This commit is contained in:
parent
6db2391efe
commit
ae9c08a478
|
@ -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 }}
|
Loading…
Reference in New Issue