Skip to content

build: add netlify config #24

build: add netlify config

build: add netlify config #24

Workflow file for this run

name: main
on:
push:
branches: ['main']
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
extended: true
- name: Build
run: hugo --minify
- name: Upload to OSS
uses: manyuanrong/setup-ossutil@master
with:
endpoint: oss-cn-shenzhen.aliyuncs.com
access-key-id: ${{ secrets.ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.ACCESS_KEY_SECRET }}
- name: Copy files
run: ossutil cp -rf ./public oss://geniuscorn