Skip to content

Commit

Permalink
👷 Final version
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Nov 1, 2023
1 parent 9a9a823 commit 15a4d09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dataset-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ on:
- all
required: true
default: all
#schedule:
# Runs at 02:00 UTC every sunday
# - cron: '0 2 * * 0'
schedule:
# Runs at 02:00 UTC every sunday
- cron: '0 2 * * 0'
env:
BUILD_ARTIFACT_PATH: ${{ github.workspace }}/backups
jobs:
Expand Down Expand Up @@ -62,13 +62,15 @@ jobs:
run: |
pnpm sanityv3 install
- name: Export Data
id: export-data
working-directory: ./sanityv3
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_BACKUP_TOKEN }}
run: |
mkdir ${{ env.BUILD_ARTIFACT_PATH }}
pnpm sanity dataset export ${{ matrix.dataset }} ${{ env.BUILD_ARTIFACT_PATH }}/${{ matrix.dataset }}.tar.gz
- name: Upload backup.tar.gz
id: upload-backup
uses: actions/upload-artifact@v3
with:
name: backup-tarball
Expand Down

0 comments on commit 15a4d09

Please sign in to comment.