clone raylib.com before running rexm
This commit is contained in:
parent
e7234717c2
commit
28c30de934
14
.github/workflows/update_examples.yml
vendored
14
.github/workflows/update_examples.yml
vendored
|
|
@ -27,6 +27,11 @@ jobs:
|
||||||
version: 'latest'
|
version: 'latest'
|
||||||
actions-cache-folder: 'emsdk-cache'
|
actions-cache-folder: 'emsdk-cache'
|
||||||
|
|
||||||
|
- name: Clone raylib.com repo
|
||||||
|
run: |
|
||||||
|
git clone https://x-access-token:${{ secrets.RAYLIB_DOT_COM_REPO_TOKEN }}@github.com/$GITHUB_REPOSITORY_OWNER/raylib.com.git
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Build and run rexm tool (GNU Makefile)
|
- name: Build and run rexm tool (GNU Makefile)
|
||||||
# rexm should update all required files in raylib and even raylib.com repo,
|
# rexm should update all required files in raylib and even raylib.com repo,
|
||||||
# but not sure if it can do that from an Action, maybe it requires manual copy
|
# but not sure if it can do that from an Action, maybe it requires manual copy
|
||||||
|
|
@ -38,9 +43,9 @@ jobs:
|
||||||
cd ../tools/rexm/
|
cd ../tools/rexm/
|
||||||
clang rexm.c -lraylib -lc -lm -o rexm
|
clang rexm.c -lraylib -lc -lm -o rexm
|
||||||
export REXM_EXAMPLES_BASE_PATH="${{ github.workspace }}/examples"
|
export REXM_EXAMPLES_BASE_PATH="${{ github.workspace }}/examples"
|
||||||
export REXM_EXAMPLES_WEB_PATH="${{ github.workspace }}/../raylib.com/examples"
|
export REXM_EXAMPLES_WEB_PATH="${{ github.workspace }}/raylib/.com/examples"
|
||||||
export REXM_EXAMPLES_TEMPLATE_FILE_PATH="${{ github.workspace }}examples/examples_template.c"
|
export REXM_EXAMPLES_TEMPLATE_FILE_PATH="${{ github.workspace }}/examples/examples_template.c"
|
||||||
export REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="${{ github.workspace }}examples/examples_template.png"
|
export REXM_EXAMPLES_TEMPLATE_SCREENSHOT_PATH="${{ github.workspace }}/examples/examples_template.png"
|
||||||
export REXM_EXAMPLES_COLLECTION_FILE_PATH="${{ github.workspace }}/examples/examples_list.txt"
|
export REXM_EXAMPLES_COLLECTION_FILE_PATH="${{ github.workspace }}/examples/examples_list.txt"
|
||||||
export REXM_EXAMPLES_VS2022_SLN_FILE="${{ github.workspace }}/projects/VS2022/raylib.sln"
|
export REXM_EXAMPLES_VS2022_SLN_FILE="${{ github.workspace }}/projects/VS2022/raylib.sln"
|
||||||
export EMSDK_PATH="${{ github.workspace }}/emsdk-cache/emsdk-main"
|
export EMSDK_PATH="${{ github.workspace }}/emsdk-cache/emsdk-main"
|
||||||
|
|
@ -77,9 +82,8 @@ jobs:
|
||||||
done
|
done
|
||||||
- name: Push changes to raylib.com repo
|
- name: Push changes to raylib.com repo
|
||||||
run: |
|
run: |
|
||||||
git clone https://x-access-token:${{ secrets.RAYLIB_DOT_COM_REPO_TOKEN }}@github.com/$GITHUB_REPOSITORY_OWNER/raylib.com.git
|
|
||||||
cd raylib.com
|
cd raylib.com
|
||||||
git add examples
|
git add examples
|
||||||
git commit -m "Update web examples"
|
git commit -m "Update web examples" || echo "git exited with code 1, nothing changed"
|
||||||
git push origin
|
git push origin
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -116,5 +116,6 @@ tools/parser/raylib_parser
|
||||||
tools/rexm/rexm.exe
|
tools/rexm/rexm.exe
|
||||||
tools/rexm/rexm
|
tools/rexm/rexm
|
||||||
|
|
||||||
# emsdk cache for GitHub Actions runners
|
# CI
|
||||||
emsdk-cache/
|
emsdk-cache/
|
||||||
|
raylib.com/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user