Created
September 2, 2021 09:57
-
-
Save magicstone1412/7d10bf6462b81e76f073a9e5b9071d37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
hugo-version: '0.86.1' | |
extended: false | |
- name: Build | |
run: hugo | |
- name: Backblaze B2 Sync | |
uses: earendildev/[email protected] | |
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