Create deploy.yaml

This commit is contained in:
Kevin Kandlbinder 2023-04-02 23:55:27 +02:00 committed by GitHub
parent 98653c4b4a
commit 4e7293a1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
.github/workflows/deploy.yaml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Deploy to Cloudflare Pages
run-name: ${{ github.actor }} created a deployment.
on:
push:
branches:
- main
- nextgen
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
gitHubToken: ${{ secrets.GH_TOKEN }}
accountId: 'f22a1f53518621246180c8f74f7e02e3'
projectName: 'unkn0wncat-next'
directory: './public'