Skip to content

Commit

Permalink
Merge pull request #22 from fluendo/fix-artifact
Browse files Browse the repository at this point in the history
Fix artifacts creation
  • Loading branch information
ylatuya authored Jun 17, 2024
2 parents 6f04f61 + 5e77fbe commit a744660
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- main
paths:
- 'build/**'
- 'gst.wasm/subprojects/**'
- 'gst.wasm/**'
- '.github/workflows/build.yaml'
pull_request:
branches:
- '**'
paths:
- 'build/**'
- 'gst.wasm/subprojects/**'
- 'gst.wasm/**'
- '.github/workflows/build.yaml'

jobs:
build:
Expand All @@ -34,9 +36,11 @@ jobs:
run: |
./cerbero-src/cerbero-uninstalled -c build/gst.wasm.cbc build gst.wasm
- name: Create tarball
if: ${{ github.ref == 'ref/head/main' }}
run: |
tar -cvJf gst.wasm.tar.xz -C build/gst.wasm_web_wasm32/ -c .
tar -cvJf gst.wasm.tar.xz -C build/gst.wasm_web_wasm32/dist/web_wasm32 -c .
- name: Upload gst.wasm
if: ${{ github.ref == 'ref/head/main' }}
uses: actions/upload-artifact@v4
with:
name: gst.wasm
Expand Down

0 comments on commit a744660

Please sign in to comment.