Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magicstone1412/7d10bf6462b81e76f073a9e5b9071d37 to your computer and use it in GitHub Desktop.
Save magicstone1412/7d10bf6462b81e76f073a9e5b9071d37 to your computer and use it in GitHub Desktop.
name: Build & Deploy Hugo Static Site to Backblaze B2
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Hugo setup
uses: peaceiris/actions-hugo@v2.4.13
with:
hugo-version: '0.86.1'
extended: false
- name: Build
run: hugo
- name: Backblaze B2 Sync
uses: earendildev/backblaze-b2-action@v0.2.0
env:
SOURCE_DIR: './public'
B2_BUCKET_PATH: 'b2://${{ secrets.B2_BUCKET }}/'
B2_APPKEY_ID: ${{ secrets.B2_APPKEY_ID }}
B2_APPKEY: ${{ secrets.B2_APPKEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment