Skip to content

Commit 318e732

Browse files
authored
Merge pull request #207 from aziontech/fix/templates/cosmic-templates
fix(templates/cosmic): Update workflows and add missing dependencies
2 parents db7a255 + ba08250 commit 318e732

File tree

9 files changed

+969
-843
lines changed

9 files changed

+969
-843
lines changed

templates/astro/cosmic-simple-astro-blog/.github/workflows/main.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,20 @@ jobs:
2424
with:
2525
node-version: 18
2626

27-
- name: Install NPM dependencies
28-
run: npm i
27+
- name: Install dependencies
28+
run: pnpm i
2929

3030
- name: Install Azion CLI
3131
run: |
3232
curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion
3333
sudo mv azionlinux /usr/bin/azion
3434
sudo chmod u+x /usr/bin/azion
3535
36+
- name: Create .env file
37+
run: |
38+
echo "PUBLIC_COSMIC_BUCKET_SLUG=${{ secrets.PUBLIC_COSMIC_BUCKET_SLUG }}" >> .env
39+
echo "PUBLIC_COSMIC_READ_KEY=${{ secrets.PUBLIC_COSMIC_READ_KEY }}" >> .env
40+
3641
- name: Azion Action Deploy
3742
run: |
3843
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}

templates/astro/cosmic-simple-astro-blog/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@astrojs/tailwind": "^5.0.0",
1616
"@astrojs/ts-plugin": "^1.0.4",
1717
"@cosmicjs/sdk": "^1.0.5",
18+
"azion": "latest",
1819
"astro": "^3.0.8",
1920
"date-fns": "^2.29.2",
2021
"react-markdown": "^8.0.3",

0 commit comments

Comments
 (0)