Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 648 Bytes
name: Deploy to Workers Staging
on:
push:
branches:
- 'draft/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Download Hugo
run: sudo wget https://github.com/gohugoio/hugo/releases/download/v0.62.0/hugo_0.62.0_Linux-64bit.deb
- name: Install Hugo
run: sudo dpkg -i hugo_0.62.0_Linux-64bit.deb
- name: Install Wrangler
run: sudo npm i @cloudflare/wrangler -g
- name: Build
run: hugo --environment staging
- name: config wrangler
run: CF_API_TOKEN=${{ secrets.CF_API_TOKEN }} wrangler publish --env staging
You can’t perform that action at this time.