Skip to content

Commit

Permalink
Merge pull request #209 from aziontech/fix/templates/sanity-templates
Browse files Browse the repository at this point in the history
fix(templates/sanity): Update workflow and dependencies
  • Loading branch information
pablodiehl authored Jan 10, 2025
2 parents 2944431 + 0d0a7e9 commit 131eb57
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,19 @@ jobs:
node-version: 18

- name: Install dependencies
run: yarn
run: npm i

- name: Install Azion CLI
run: |
curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion
sudo mv azionlinux /usr/bin/azion
sudo chmod u+x /usr/bin/azion
- name: Create .env file
run: |
echo "SANITY_STUDIO_PROJECT_ID=${{ secrets.SANITY_STUDIO_PROJECT_ID }}" >> .env
echo "SANITY_STUDIO_DATASET=${{ secrets.SANITY_STUDIO_DATASET }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
58 changes: 58 additions & 0 deletions templates/angular/sanity-angular-clean/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/angular/sanity-angular-clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@portabletext/types": "^2.0.2",
"@sanity/client": "^6.0.1",
"@sanity/image-url": "^1.0.2",
"azion": "latest",
"dotenv": "^16.0.3",
"express": "^4.15.2",
"rxjs": "~7.8.0",
Expand Down
5 changes: 5 additions & 0 deletions templates/astro/sanity-astro-clean/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
sudo mv azionlinux /usr/bin/azion
sudo chmod u+x /usr/bin/azion
- name: Create .env file
run: |
echo "PUBLIC_SANITY_STUDIO_PROJECT_ID=${{ secrets.PUBLIC_SANITY_STUDIO_PROJECT_ID }}" >> .env
echo "PUBLIC_SANITY_STUDIO_DATASET=${{ secrets.PUBLIC_SANITY_STUDIO_DATASET }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
37 changes: 37 additions & 0 deletions templates/astro/sanity-astro-clean/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/astro/sanity-astro-clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@astrojs/vercel": "^7.7.2",
"@sanity/astro": "^3.1.4",
"@sanity/image-url": "1.0.2",
"azion": "latest",
"astro": "^4.11.3",
"astro-portabletext": "0.10.0",
"autoprefixer": "10.4.19",
Expand Down
6 changes: 6 additions & 0 deletions templates/nuxt/sanity-nuxt-clean/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
sudo mv azionlinux /usr/bin/azion
sudo chmod u+x /usr/bin/azion
- name: Create .env file
run: |
echo "NUXT_SANITY_PROJECT_ID=${{ secrets.NUXT_SANITY_PROJECT_ID }}" >> .env
echo "NUXT_SANITY_DATASET=${{ secrets.NUXT_SANITY_DATASET }}" >> .env
echo "NUXT_SANITY_API_READ_TOKEN=${{ secrets.NUXT_SANITY_API_READ_TOKEN }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
28 changes: 28 additions & 0 deletions templates/nuxt/sanity-nuxt-clean/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/nuxt/sanity-nuxt-clean/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"@sanity/types": "^3.50.0",
"@types/node": "^18.17.14",
"azion": "latest",
"nuxt": "^3.12.3",
"postcss": "^8.4.39",
"postcss-nested": "^6.0.1"
Expand Down

0 comments on commit 131eb57

Please sign in to comment.