-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b77ea32
commit 994faf6
Showing
1 changed file
with
39 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Import dataset for cloned project | ||
name: Upload dataset for cloned project | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -11,15 +11,48 @@ on: | |
type: string | ||
|
||
jobs: | ||
import-dataset: | ||
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: actions/setup-node@v3 | ||
- uses: sanity-io/[email protected] | ||
with: | ||
node-version: '18' | ||
- run: npm install | ||
- run: npx sanity debug --secrets | ||
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 |