From 5071412073b1644c60348fb2b89f2bad51596cf8 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Fri, 3 Jul 2020 03:05:13 +0200 Subject: [PATCH] Add GitHub action for deployment --- .github/workflows/update.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update.yaml diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml new file mode 100644 index 0000000..2d4f067 --- /dev/null +++ b/.github/workflows/update.yaml @@ -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 }}