Fix Workflow

This commit is contained in:
thororen1234 2024-12-09 13:35:32 -05:00
parent 9221f0ff1e
commit 5cae5360b6

View file

@ -3,6 +3,8 @@ on:
push: push:
tags: tags:
- v* - v*
branches:
- main
env: env:
FORCE_COLOR: true FORCE_COLOR: true
GITHUB_TOKEN: ${{ secrets.ETOKEN }} GITHUB_TOKEN: ${{ secrets.ETOKEN }}
@ -73,9 +75,14 @@ jobs:
id: package-version id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1 uses: martinbeentjes/npm-get-version-action@v1.3.1
- name: Upload Equicord - name: Upload Equicord Tagged
if: startsWith(github.ref, 'refs/tags/')
run: | run: |
gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/* gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/*
- name: Upload Equicord Stable
if: startsWith(github.ref, 'refs/tags/')
run: |
gh release upload latest --clobber dist/release/* gh release upload latest --clobber dist/release/*
- name: Upload Plugins JSON to Equibored repo - name: Upload Plugins JSON to Equibored repo