-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove node step, add "add sanity webhook" step
- Loading branch information
1 parent
881a006
commit 5469d9a
Showing
1 changed file
with
5 additions
and
27 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 |
---|---|---|
|
@@ -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" |