Sfoglia il codice sorgente

Update webassembly.yml

Ray 5 anni fa
parent
commit
336c6b7055
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      .github/workflows/webassembly.yml

+ 7 - 7
.github/workflows/webassembly.yml

@@ -12,6 +12,7 @@ jobs:
     
     env:
       VERSION: ${{ github.event.release.tag_name }}
+      VERSION_SHORT: ${VERSION//.}
       RELEASE_NAME: raylib-dev_webassembly
     
     steps:
@@ -23,6 +24,12 @@ jobs:
       with:
         version: 2.0.0
         actions-cache-folder: 'emsdk-cache'
+        
+    - name: Setup Release Version
+      run: |
+        echo "::set-env name=RELEASE_NAME::raylib-${{ github.event.release.tag_name }}_webassembly"
+      shell: bash
+      if: github.event_name == 'release' && github.event.action == 'published'
 
     - name: Setup Environment
       run: | 
@@ -33,13 +40,6 @@ jobs:
         mkdir include
         mkdir lib
         cd ../..
-        
-    - name: Setup Release Version
-      run: |
-        echo "::set-env name=RELEASE_NAME::raylib-${{ github.event.release.tag_name }}_webassembly"
-        echo "::set-env name=VERSION_SHORT::${VERSION//.}"
-      shell: bash
-      if: github.event_name == 'release' && github.event.action == 'published'
    
     - name: Build Library
       run: |