Skip to content

Commit 2ad29d8

Browse files
committed
Always build the distribution. Only upload it with a tag
1 parent b4d64ad commit 2ad29d8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,6 @@ jobs:
246246
needs: [maya-win, maya-linux, maya-macos-11, maya-macos-12]
247247
runs-on: ubuntu-latest
248248

249-
# Only run on e.g. v0.1.0
250-
if: startsWith(github.ref, 'refs/tags/v')
251-
252249
steps:
253250
- name: Checkout code
254251
uses: actions/checkout@v3
@@ -283,9 +280,21 @@ jobs:
283280
run: |
284281
mkdir -p modules/simplex/scripts
285282
cp -r ./scripts/simplexui modules/simplex/scripts
286-
zip -r simplex-${{env.RELEASE_VERSION}}.zip modules/
283+
zip -r simplex.zip modules/
284+
285+
- name: Upload Artifacts
286+
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
287+
uses: actions/upload-artifact@v3
288+
with:
289+
name: simplex-module
290+
path: simplex.zip
291+
292+
- name: Rename Zip
293+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
294+
run: mv simplex.zip simplex-${{env.RELEASE_VERSION}}.zip
287295

288296
- name: Upload distribution
297+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
289298
uses: "marvinpinto/action-automatic-releases@latest"
290299
with:
291300
repo_token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)