Skip to content

Commit

Permalink
remove node step, add "add sanity webhook" step
Browse files Browse the repository at this point in the history
  • Loading branch information
dogfrogfog committed Nov 8, 2023
1 parent 881a006 commit 5469d9a
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/import-dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,18 @@ on:
type: string

jobs:
upload-dataset:
upload-data:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_SANITY_PROJECT_ID: ${{ inputs.sanity-project-id }}
NEXT_PUBLIC_SANITY_DATASET: ${{ inputs.sanity-project-dataset }}
name: Backup dataset
name: Upload data
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- name: Export dataset
- name: Upload dataset
uses: sanity-io/[email protected]
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
with:
args: . debug --secrets
# 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 }}
# steps:
# - uses: sanity-io/[email protected]
# env:
# SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
# implementation WITHOUT sanity action
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v3
# with:
# node-version: '18'
# - run: npm install
# - run: SANITY_AUTH_TOKEN=tokent npx sanity debug --secrets

# implementation WITH sanity action
- name: Add sanity webhook
run: echo "Add sanity webhook"

0 comments on commit 5469d9a

Please sign in to comment.