Skip to content

Commit

Permalink
Merge pull request #208 from aziontech/fix/templates/butter-templates
Browse files Browse the repository at this point in the history
fix(templates/butter): Update workflow and dependencies
  • Loading branch information
pablodiehl authored Jan 10, 2025
2 parents 318e732 + db7b1fd commit 2944431
Show file tree
Hide file tree
Showing 15 changed files with 293 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ 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 "NG_APP_ANGULAR_BUTTER_CMS_API_KEY=${{ secrets.NG_APP_ANGULAR_BUTTER_CMS_API_KEY }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
58 changes: 58 additions & 0 deletions templates/angular/angular-starter-buttercms/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/angular-starter-buttercms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/router": "^15.1.2",
"azion": "latest",
"buttercms": "^1.2.15",
"dotenv": "^16.0.3",
"rxjs": "~7.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ 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 "BUTTER_CMS_API_KEY=${{ secrets.BUTTER_CMS_API_KEY }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
45 changes: 45 additions & 0 deletions templates/gatsby/gatsby-starter-buttercms/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/gatsby/gatsby-starter-buttercms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "eslint src/**/*.js"
},
"dependencies": {
"azion": "latest",
"bootstrap": "^5.2.3",
"buttercms": "^1.2.15",
"gatsby": "^5.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ 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 "NUXT_ENV_BUTTER_API_TOKEN=${{ secrets.NUXT_ENV_BUTTER_API_TOKEN }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
54 changes: 46 additions & 8 deletions templates/nuxt/nuxt-starter-buttercms/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/nuxt-starter-buttercms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"nuxt": "^3"
},
"dependencies": {
"azion": "latest",
"buttercms": "^1.2.15",
"tiny-slider": "^2.9.4",
"vue": "^3.2.47"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
sudo mv azionlinux /usr/bin/azion
sudo chmod u+x /usr/bin/azion
- name: Create .env file
run: |
echo "REACT_APP_BUTTER_CMS_API_KEY=${{ secrets.REACT_APP_BUTTER_CMS_API_KEY }}" >> .env
- name: Azion Action Deploy
run: |
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
Expand Down
Loading

0 comments on commit 2944431

Please sign in to comment.