Add workflow for generating and publishing to wiki

This commit is contained in:
Filip Tibell 2023-02-23 14:12:25 +01:00
parent 5445115b3b
commit c9e541c26b
No known key found for this signature in database
2 changed files with 42 additions and 0 deletions

42
.github/workflows/wiki.yaml vendored Normal file
View file

@ -0,0 +1,42 @@
name: Deploy GitHub Wiki
on:
push:
branches:
- main
jobs:
wiki:
name: Deploy GitHub Wiki
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- 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 }}

0
docs/pages/Home.md Normal file
View file