Skip to content

Build

Build #14585

Workflow file for this run

name: Build
on:
push:
branches: ["main"]
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.CLONE_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Notes from Google Drive
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: ${{ secrets.RCLONE_CONFIG }}
- run: 'rclone copy Personal:Notes notes'
- name: Download README.md
run: curl -O https://raw.githubusercontent.com/AnzenKodo/AnzenKodo/refs/heads/main/README.md
- name: Setup Go 1.21.1
uses: actions/setup-go@v4
with:
go-version: '1.21.1'
- name: Build
run: go run . build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site