Skip to content

Commit

Permalink
Merge branch 'padms/1626'
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Oct 31, 2023
2 parents 48e8bb0 + dd0c2de commit e225649
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dataset-backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,23 @@ jobs:
matrix:
dataset: ['global-development'] #${{ fromJson(needs.read-satellites.outputs.matrix) }}
steps:
- name: Install pnpm 📦
id: install-pnpm
uses: pnpm/[email protected]
with:
version: '8.5.1'
- name: Cache pnpm modules 💾
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'

- uses: actions/checkout@v3
- name: Export Data
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY }}
run: |
npm install -g @sanity/cli
pnpm install -g @sanity/cli
sanity install
SANITY_AUTH_TOKEN=$SANITY_AUTH_TOKEN sanity dataset export ${{ matrix.dataset }} backups/backup-${{ matrix.dataset }}.tar.gz
- name: Upload backup.tar.gz
Expand Down

0 comments on commit e225649

Please sign in to comment.