Skip to content

Create project copy #13

Create project copy

Create project copy #13

Workflow file for this run

name: Upload dataset for cloned project
on:
workflow_dispatch:
inputs:
sanity-project-id:
required: true
type: string
sanity-project-dataset:
required: true
type: string
jobs:
upload-dataset:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ inputs.sanity-project-id }}
NEXT_PUBLIC_SANITY_DATASET: ${{ inputs.sanity-project-dataset }}
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: sanity-io/[email protected]
with:
args: debug --secret
# jobs:
# backup-dataset:
# name: Backup dataset
# steps:
# - uses: actions/checkout@v2
# - name: Export dataset
# uses: sanity-io/[email protected]
# env:
# SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
# with:
# args: dataset export production backups/backup.tar.gz
# - name: Upload backup.tar.gz
# uses: actions/upload-artifact@v2
# with:
# name: backup-tarball
# path: backups/backup.tar.gz
# # Fails the workflow if no files are found; defaults to 'warn'
# if-no-files-found: error
# name: Deploy Sanity
# on:
# push:
# branches: [main]
# jobs:
# sanity-deploy:
# runs-on: ubuntu-latest
# name: Deploy Sanity
# steps:
# - uses: actions/checkout@v2
# - uses: sanity-io/[email protected]
# env:
# SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
# with:
# args: deploy