First page powered by pipeline #22
This file contains 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: Backblaze B2 Sync | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
backblaze-cli-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install b2 CLI tool | |
run: | | |
pip install b2 --log /dev/null | |
- name: Sync all files that have a different size | |
run: | | |
b2 sync --compare-versions size --delete ./src/ "b2://ozoniusswebsite/" | |
env: | |
B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }} | |
B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }} |