diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dd6bdbe..3122e235 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,8 @@ name: Release on: push: + tags: + - v* branches: - main - dev @@ -68,10 +70,16 @@ jobs: rm release/package.json rm release/*.map + - name: get-npm-version + if: ${{ github.ref_name == 'main' }} + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 + - name: Upload Equicord Stable if: ${{ github.ref_name == 'main' }} run: | - gh release upload latest --clobber dist/release/* + gh release create v${{ steps.package-version.outputs.current-version}} --latest=false + gh release upload v${{ steps.package-version.outputs.current-version}} --clobber dist/release/* - name: Upload Equicord Dev if: ${{ github.ref_name == 'dev' }}