Skip to content

ci: add embassy & rust-sel4 back #4

ci: add embassy & rust-sel4 back

ci: add embassy & rust-sel4 back #4

Workflow file for this run

name: Deploy Doc
on:
push:
branches: [ main ]
env:
RUST_LOG: info
CARGO_TERM_COLOR: always
TAG_REPOS_DEFAULT: cache-v8.redb
DOCS_URL: ${{ vars.DOCS_URL }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@nightly
- name: Set up author & committer
run: |
git config --global user.name "zjp-CN [bot]"
git config --global user.email "zjp-CN[bot]@users.noreply.github.com"
git lfs install --skip-smudge # 如果 lfs 下载不了大文件,跳过下载
- name: Generate rustdoc artifacts
run: |
wget https://github.com/os-checker/database/releases/download/${{ env.TAG_REPOS_DEFAULT }}/repos-default.json
jq 'del(."qclic/e1000e-frame") | to_entries | map(.key) + ["os-checker/os-checker"]' repos-default.json > list.json
cargo r -- # list-test.json
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: deploy/
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4