mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
41 lines
895 B
YAML
41 lines
895 B
YAML
name: Deploy GitHub Wiki
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
wiki:
|
|
name: Deploy GitHub Wiki
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Build CLI
|
|
shell: bash
|
|
run: cargo build --package lune-cli
|
|
|
|
- name: Copy docs pages
|
|
shell: bash
|
|
run: cp -R docs/pages/ wiki
|
|
|
|
- name: Generate wiki using CLI
|
|
shell: bash
|
|
run: cargo run --package lune-cli -- --generate-wiki-dir
|
|
|
|
- name: Push wiki changes
|
|
uses: Andrew-Chen-Wang/github-wiki-action@v3
|
|
env:
|
|
WIKI_DIR: wiki/
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GH_MAIL: ${{ secrets.WIKI_GITHUB_EMAIL }}
|
|
GH_NAME: ${{ github.repository_owner }}
|