Skip to content

Commit 72059a7

Browse files
committed
add latest folder generation
1 parent db7e996 commit 72059a7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/doc_gen.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
command: run
3535
args: --features=lua54,lua_script_api lua
3636
- run: cat ./assets/scripts/doc/tealr_doc_gen_config.json
37-
- name: Pushes to another repository
37+
- name: Push to pages
3838
uses: cpina/github-action-push-to-another-repository@main
3939
env:
4040
SSH_DEPLOY_KEY: ${{ secrets.LUA_DOCUMENTATION_SSH_KEY }}
@@ -45,3 +45,16 @@ jobs:
4545
user-email: makspl17@gmail.com
4646
target-branch: main
4747
target-directory: ${{ github.event.release.tag_name || inputs.manual_tag }}
48+
- name: Pushes to pages as latest
49+
if: ${{ github.event.release.tag_name }} == ''
50+
uses: cpina/github-action-push-to-another-repository@main
51+
env:
52+
SSH_DEPLOY_KEY: ${{ secrets.LUA_DOCUMENTATION_SSH_KEY }}
53+
with:
54+
source-directory: './assets/scripts/doc/BevyAPI/${{ github.event.release.tag_name || inputs.manual_tag }}'
55+
destination-github-username: 'makspll'
56+
destination-repository-name: 'bevy_mod_scripting_lua'
57+
user-email: makspl17@gmail.com
58+
target-branch: main
59+
target-directory: latest
60+

0 commit comments

Comments
 (0)