mirror of
https://github.com/Unkn0wnCat/Unkn0wnCat.net.git
synced 2025-04-28 09:46:48 +02:00
Create deploy.yaml
This commit is contained in:
parent
98653c4b4a
commit
4e7293a1d6
1 changed files with 33 additions and 0 deletions
33
.github/workflows/deploy.yaml
vendored
Normal file
33
.github/workflows/deploy.yaml
vendored
Normal 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'
|
Loading…
Add table
Reference in a new issue