mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-25 09:59:21 +01:00
083cb999d0
Some checks failed
CI (Pinnacle) / Build (push) Has been cancelled
CI (Pinnacle) / Run tests (push) Has been cancelled
CI (Pinnacle) / Check formatting (push) Has been cancelled
CI (Pinnacle) / Clippy check (push) Has been cancelled
Build and Publish Lua Docs / Build (push) Has been cancelled
60 lines
2 KiB
YAML
60 lines
2 KiB
YAML
name: Build and Publish Lua Docs
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "api/lua/**"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SSH_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_KEY_LUA }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
name: Build
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Checkout lcat
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: Ottatop/lcat
|
|
path: ./lcat
|
|
- name: Get Rust toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Cache stuff
|
|
uses: Swatinem/rust-cache@v2
|
|
# - name: Get dependencies
|
|
# run: sudo apt remove needrestart && sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler xwayland libegl-dev liblua5.4-dev libdisplay-info-dev
|
|
- name: Generate docs
|
|
run: |
|
|
cd ./lcat
|
|
cargo run -- --dir "../api/lua" --base-url "/lua-reference/"
|
|
- name: Push classes
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
with:
|
|
source-directory: "./lcat/lcat_out/classes"
|
|
destination-github-username: "pinnacle-comp"
|
|
destination-repository-name: "lua-reference"
|
|
target-branch: main
|
|
target-directory: classes
|
|
- name: Push aliases
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
with:
|
|
source-directory: "./lcat/lcat_out/aliases"
|
|
destination-github-username: "pinnacle-comp"
|
|
destination-repository-name: "lua-reference"
|
|
target-branch: main
|
|
target-directory: aliases
|
|
- name: Push enums
|
|
uses: cpina/github-action-push-to-another-repository@main
|
|
with:
|
|
source-directory: "./lcat/lcat_out/enums"
|
|
destination-github-username: "pinnacle-comp"
|
|
destination-repository-name: "lua-reference"
|
|
target-branch: main
|
|
target-directory: enums
|