I have the following workflow in github actions:
name: Move artifacts
on:
push:
branches:
- main
jobs:
move_artifacts:
name: Move artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: upload-files
uses: google-github-actions/upload-cloud-storage@main
with:
credentials: ${{ secrets.gcp_credentials }}
path: .
destination: my-bucket/my-folder/
And, when this workflow is triggered, the files from the repo are copied into GCS, but, if there were other files in the GCS folder, then these are not deleted.
How can I make an upload in such a way that the contents of my-bucket/my-folder is exactly the content of the repo? How can I delete the files that are not in the repo anymore?