Skip to content

Commit

Permalink
Merge pull request #9 from namiml/github-cleanup
Browse files Browse the repository at this point in the history
yaml format and use cloudflare account id as var instead of secret
  • Loading branch information
namidan authored Nov 21, 2024
2 parents d021a6e + 2458010 commit 002280c
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Dependencies
run: yarn install

- name: Set productDetails
run: node ./scripts/product-details.js
env:
NAMI_PRODUCT_DETAILS: '${{ secrets.NAMI_PRODUCT_DETAILS }}'

- name: Build
run: yarn build:basic-react
env:
APP_PLATFORM_ID: ${{ secrets.APP_PLATFORM_ID }}
PLACEMENT_LABEL: ${{ secrets.PLACEMENT_LABEL }}

- name: Deploy to Cloudflare Pages
run: yarn deploy:basic-react
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install Dependencies
run: yarn install

- name: Set productDetails
run: node ./scripts/product-details.js
env:
NAMI_PRODUCT_DETAILS: "${{ secrets.NAMI_PRODUCT_DETAILS }}"

- name: Build
run: yarn build:basic-react
env:
APP_PLATFORM_ID: ${{ secrets.APP_PLATFORM_ID }}
PLACEMENT_LABEL: ${{ secrets.PLACEMENT_LABEL }}

- name: Deploy to Cloudflare Pages
run: yarn deploy:basic-react
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}

0 comments on commit 002280c

Please sign in to comment.