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

30 lines
788 B
YAML
Raw Normal View History

2023-12-28 06:32:10 +00:00
name: Deploy
2023-12-28 04:55:03 +00:00
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
2023-12-28 05:39:01 +00:00
uses: LumeWeb/web3.news-publisher@develop
2023-12-28 04:55:03 +00:00
if: github.ref == 'refs/heads/master'
with:
2023-12-28 06:31:19 +00:00
node: ${{ vars.NODE }}
2023-12-28 04:55:03 +00:00
seed: ${{ secrets.SEED }}