Skip to content

Commit edb067e

Browse files
committed
add workflow for pushing documentation to lua page
1 parent ffdf2b0 commit edb067e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/doc_gen.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
name: Documentation Generation
6+
7+
jobs:
8+
lua:
9+
name: Lua Documentation
10+
steps:
11+
- name: Install alsa and udev
12+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: stable
18+
override: true
19+
- uses: Swatinem/rust-cache@v1
20+
- uses: actions-rs/cargo@v1
21+
with:
22+
command: run
23+
args: --features=lua54,lua_script_api lua
24+
- name: Pushes to another repository
25+
uses: cpina/github-action-push-to-another-repository@main
26+
env:
27+
SSH_DEPLOY_KEY: ${{ secrets.LUA_DOCUMENTATION_SSH_KEY }}
28+
with:
29+
source-directory: 'assets/scripts/doc/pages'
30+
destination-github-username: 'makspll'
31+
destination-repository-name: 'bevy_mod_scripting_lua'
32+
user-email: makspl17@gmail.com
33+
target-branch: main
34+
target-directory: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)