Export Firestore Data #228
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: Export Firestore Data | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' | |
env: | |
PROJECT_ID: fireship-app | |
BUCKET: gs://fireship-app-backups | |
jobs: | |
backup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
service_account_key: ${{ secrets.GCP_SA_KEY }} | |
export_default_credentials: true | |
- run: gcloud info | |
- run: gcloud config set project $PROJECT_ID | |
- run: gcloud firestore export $BUCKET |