diff --git a/.firebaserc b/.firebaserc index 1efb67d8..e24e500f 100644 --- a/.firebaserc +++ b/.firebaserc @@ -1,6 +1,6 @@ { "projects": { - "the-handsomest-nerd-internal": "the-handsomest-nerd-internal" + "chowworks-website": "chowworks-website" }, "targets": {}, "etags": {} diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index e4d19ddf..e9d5ca0c 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -16,6 +16,6 @@ jobs: - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_THE_HANDSOMEST_NERD }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' channelId: live - projectId: the-handsomest-nerd-internal + projectId: chowworks-website diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 34a88b3c..5ff1da7b 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -13,5 +13,5 @@ jobs: - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_THE_HANDSOMEST_NERD }}' - projectId: the-handsomest-nerd-internal + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' + projectId: chowworks-website diff --git a/.github/workflows/sanity-backup.yml b/.github/workflows/sanity-backup.yml index f5e6ace2..2d663317 100644 --- a/.github/workflows/sanity-backup.yml +++ b/.github/workflows/sanity-backup.yml @@ -15,10 +15,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 + - name: Install dependencies run: | cd sanityIo - npm install + npm --force install set -e # Put your environment variables here. Don't forget # to create secrets for them on GitHub: @@ -26,9 +27,15 @@ jobs: cat << EOF > .env.production EOF # Make sure to add a secret for SANITY_AUTH_TOKEN - SANITY_AUTH_TOKEN="${{ secrets.SANITY_AUTH_TOKEN }}" npx @sanity/cli dataset export production backups/backup.tar.gz + SANITY_AUTH_TOKEN="${{ secrets.SANITY_AUTH_TOKEN }}" + - name: Export dataset + uses: sanity-io/github-action-sanity@v0.1-alpha + 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@v3 + uses: actions/upload-artifact@v2 with: name: backup-tarball path: sanityIo/backups/backup.tar.gz diff --git a/.idea/misc.xml b/.idea/misc.xml index ee583896..7d40812f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ -