now to test the rest
This commit is contained in:
parent
e23e8fbad3
commit
d05cdfd571
41
.github/workflows/update_examples.yml
vendored
41
.github/workflows/update_examples.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/raysan5/raylib.com.git "${{ github.workspace }}/../raylib.com"
|
git clone https://x-access-token:${GITHUB_TOKEN}@github.com/JohnnyCena123/raylib.com.git "${{ github.workspace }}/../raylib.com"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build and run rexm tool (GNU Makefile)
|
- name: Build and run rexm tool (GNU Makefile)
|
||||||
|
|
@ -57,19 +57,38 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Commit changes to raylib repo
|
- name: Commit changes to raylib repo
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
#git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
#git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
#git add -A
|
git add -A
|
||||||
#git commit -m "Update examples collection"
|
git commit -m "Update examples collection"
|
||||||
#git push
|
git push
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Build examples
|
||||||
|
run: |
|
||||||
|
cd "${{ github.workspace }}/src"
|
||||||
|
make clean
|
||||||
|
make PLATFORM=PLATFORM_WEB
|
||||||
|
cd ../examples
|
||||||
|
make PLATFORM=PLATFORM_WEB
|
||||||
|
for category in core shapes textures models shaders text audio; do
|
||||||
|
cd $category
|
||||||
|
target_dir="${{ github.workspace }}/../raylib.com/examples/$category/"
|
||||||
|
find . -type f -name "*.wasm" -exec cp {} "$target_dir" +
|
||||||
|
find . -type f -name "*.html" -exec cp {} "$target_dir" +
|
||||||
|
find . -type f -name "*.js" -exec cp {} "$target_dir" +
|
||||||
|
find . -type f -name "*.data" -exec cp {} "$target_dir" +
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
- name: Push changes to raylib.com repo
|
- name: Push changes to raylib.com repo
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
#git config --global user.name "github-actions[bot]"
|
cd "${{ github.workspace }}/../raylib.com"
|
||||||
#git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git add examples
|
||||||
#git add examples
|
git commit -m "Update web examples"
|
||||||
#git commit -m "Update web examples"
|
git push origin
|
||||||
#git push origin
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user