Skip to content

add 0924

add 0924 #845

Workflow file for this run

name: Build & Deploy
# Triggers the workflow on push or pull request events but only for the "master" branch
on:
push:
branches: ["master", "main"]
pull_request:
branches: ["master", "main"]
# Requires content write permission
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# Access workspace files
- name: Checkout 🛎️
uses: actions/checkout@v3
# Run compilation script with Rust
- name: Build 🔧
run: cargo run
# Deploy to GitHub pages
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'build' # Build path
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3