mirror of
https://github.com/Unkn0wnCat/Unkn0wnCat.net.git
synced 2025-04-28 17:56:47 +02:00
Add GitHub action for deployment
This commit is contained in:
parent
351c1aecfe
commit
5071412073
1 changed files with 31 additions and 0 deletions
31
.github/workflows/update.yaml
vendored
Normal file
31
.github/workflows/update.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Update Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
scheudle:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
name: Update Site
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
name: Checkout Repo
|
||||||
|
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
name: Install Dependencies
|
||||||
|
|
||||||
|
- run: npm run build
|
||||||
|
name: Build Site
|
||||||
|
|
||||||
|
- name: Publish Site
|
||||||
|
uses: cloudflare/wrangler-action@1.2.0
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
Loading…
Add table
Reference in a new issue