Compare commits
5 Commits
0fda2d83eb
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4716ced74c | |||
| 2b8bd62757 | |||
| 8090549e01 | |||
| 87ae036d50 | |||
| a347f3f625 |
+11
-18
@@ -8,24 +8,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:22
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: git clone --depth 1 --branch main https://git.ampbox.io/${{ github.repository }}.git .
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Build and deploy
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
npm ci
|
||||||
node-version: 22
|
npm run build
|
||||||
|
npx wrangler pages deploy dist/ --project-name=crashtestdev
|
||||||
- name: Install dependencies
|
env:
|
||||||
run: npm ci
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy to Cloudflare Pages
|
|
||||||
uses: cloudflare/wrangler-action@v3
|
|
||||||
with:
|
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
||||||
command: pages deploy dist/ --project-name=crashtestdev
|
|
||||||
|
|||||||
Reference in New Issue
Block a user