mirror of
https://github.com/Unkn0wnCat/Unkn0wnCat.net.git
synced 2025-04-29 02:07:35 +02:00
34 lines
664 B
Text
34 lines
664 B
Text
name: Update Site
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
- 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: '17.x'
|
|
|
|
- run: yarn
|
|
name: Install Dependencies
|
|
|
|
- name: Build Site
|
|
env:
|
|
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
|
|
run: yarn build
|
|
|
|
- name: Publish Site
|
|
uses: cloudflare/wrangler-action@1.2.0
|
|
if: github.ref == 'refs/heads/main'
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|