mirror of https://github.com/FOME-Tech/wiki.git
Add deployment workflow
This commit is contained in:
parent
dc1b70c600
commit
f27ae51caf
|
@ -5,8 +5,6 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
name: Deploy
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-deploy
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: "npm"
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- uses: cloudflare/pages-action@v1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
projectName: wiki
|
||||
directory: build
|
||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} # GitHub Deployments
|
||||
branch: master
|
||||
wranglerVersion: '3'
|
Loading…
Reference in New Issue