Skip to content

Commit

Permalink
deploy web examples 4
Browse files Browse the repository at this point in the history
  • Loading branch information
duddel committed Aug 6, 2024
1 parent 106ceb9 commit 176a267
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,21 @@ jobs:
name: deploy examples
runs-on: ubuntu-latest
needs: examples
strategy:
matrix:
example_name: [framework, bare, template, fps, particles, sprites]

steps:
- uses: actions/checkout@v4
with:
ref: "refs/heads/gh-pages"
- uses: actions/download-artifact@v4
with:
name: ${{ matrix.example_name }}-web
pattern: *-web
path: ./
- name: unzip web example
merge-multiple: true
- name: unzip web examples
run: |
for filename in ./*Emscripten.zip
do
# sed regex matches: "../project-version-Emscripten.zip" and replaces
# sed regex matches: "project-version-Emscripten.zip" and replaces
# it with the sole project name (match group \1)
projname=$(echo $filename | sed -E 's/.*\/(.+)-(.+)-(.+)\.zip/\1/')
mkdir -p yg_examples/$projname
Expand Down

0 comments on commit 176a267

Please sign in to comment.