Skip to content

Build and Deploy (v1) #33

Build and Deploy (v1)

Build and Deploy (v1) #33

name: Build and Deploy (v1)
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: cargo run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: install Rustc
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run Build
run: cargo run
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
name: Deploy to GitHub Pages
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4