Skip to content

Commit

Permalink
Add upload assets in CI (#96)
Browse files Browse the repository at this point in the history
* Add upload assets in CI
  • Loading branch information
perrornet authored May 28, 2024
1 parent 14762d1 commit adb9233
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/upload_assets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Upload Assets
on:
push:
branches: ["main"]
# paths:
# - 'assets/images/**'

jobs:
build-test-deploy:
name: Build, Test, Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: 'auth'
uses: google-github-actions/auth@v1
with:
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Upload Assets
uses: google-github-actions/upload-cloud-storage@v1
with:
path: 'assets/images'
destination: '${{ secrets.GCS_PATH }}'
predefinedAcl: 'publicRead'

0 comments on commit adb9233

Please sign in to comment.