init
This commit is contained in:
38
.github/workflows/deploy-aiat.yml
vendored
Normal file
38
.github/workflows/deploy-aiat.yml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Deploy Aiat
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'web/src/sites/aiat.json'
|
||||
- 'web/src/assets/aiat/**'
|
||||
- 'web/src/assets/common/**'
|
||||
- 'web/src/content/**'
|
||||
- 'web/src/templates/**'
|
||||
- 'web/src/types.ts'
|
||||
- 'web/src/build.ts'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- run: npm install
|
||||
working-directory: web
|
||||
- run: npm run build
|
||||
working-directory: web
|
||||
- uses: cloudflare/pages-action@v1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
projectName: ${{ secrets.APP_AT_NAME }}
|
||||
directory: web/dist/aiat
|
||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
wranglerVersion: '3'
|
||||
Reference in New Issue
Block a user