Skip to content

update passages

update passages #90

Workflow file for this run

name: hugo
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
extended:
true
## for ipfs
#- name: Build local
# run: hugo --minify --config config_local.toml
#- name: Deploy to GitHub Pages local
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
# publish_branch: local
- name: Replace waline servel url
run: sed -i 's!WALINE_SERVER_URL!${{secrets.WALINE_SERVER_URL}}!g' config.toml
# plain
- name: Build
run: hugo --minify && echo ${{secrets.WEB_SITE}} > ./public/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
- name: rm all html
run: find public -name "*.html" | xargs rm -f
# - name: Upload to DogeCloud
# uses: zu1k/[email protected]
# with:
# access_key: ${{ secrets.ACCESS_KEY }}
# secret_key: ${{ secrets.SECRET_KEY }}
# bucket: ${{ secrets.BUCKET }}
# region: ${{ secrets.REGION }}
# local_path: public
# remote_path: /
# clean: false
# accelerate: false