Skip to content

[pull] master from troyeguo:master #2

[pull] master from troyeguo:master

[pull] master from troyeguo:master #2

Workflow file for this run

name: Download and Upload Release Files
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download release files
run: |
curl -s https://api.github.com/repos/koodo-reader/koodo-reader/releases/latest | \

Check failure on line 18 in .github/workflows/upload.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/upload.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
jq -r ".assets[] | .browser_download_url" | \
xargs -L 1 curl -LO
- name: Install B2 CLI
run: |
curl https://f000.backblazeb2.com/file/backblazeb2-public/b2-linux-x86_64 -o b2
chmod +x b2
- name: Create or update folder in Backblaze
run: |
./b2 authorize-account ${{ secrets.B2_ACCOUNT_ID }} ${{ secrets.B2_APPLICATION_KEY }}
./b2 create-bucket ${{ secrets.B2_BUCKET_NAME }} ${{ github.ref }} allPublic
- name: Upload release files to Backblaze
run: |
./b2 authorize-account ${{ secrets.B2_ACCOUNT_ID }} ${{ secrets.B2_APPLICATION_KEY }}
./b2 sync --delete --excludeRegex ".*\.git.*" release_files/ ${{ secrets.B2_BUCKET_NAME }}/${{ github.ref }}