pinnacle/.github/workflows/lcat.yml

59 lines
2 KiB
YAML
Raw Normal View History

2024-08-02 21:52:42 +02:00
name: Build and Publish Lua Docs
on:
push:
branches: ["main"]
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
2024-08-02 21:54:49 +02:00
path: ./lcat
2024-08-02 21:52:42 +02:00
- 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"
2024-08-02 21:52:42 +02:00
- name: Push classes
uses: cpina/github-action-push-to-another-repository@main
with:
source-directory: "./lcat/lcat_out/classes"
2024-08-02 21:52:42 +02:00
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"
2024-08-02 21:52:42 +02:00
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"
2024-08-02 21:52:42 +02:00
destination-github-username: "pinnacle-comp"
destination-repository-name: "lua-reference"
target-branch: main
target-directory: enums