mirror of
https://github.com/unraid/api.git
synced 2026-01-16 05:37:25 -06:00
fix: only release on v tag and save source tgz to artifacts
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -121,10 +121,19 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nexe
|
||||
|
||||
- name: Pack source
|
||||
run: npm pack
|
||||
|
||||
- name: Upload to Github artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: unraid-api
|
||||
path: ${{ github.workspace }}/*-source.tgz
|
||||
|
||||
- name: Build binary
|
||||
run: npm i -g nexe && npm run build-binary
|
||||
|
||||
- name: Pack release
|
||||
- name: Pack binary
|
||||
run: npm pack
|
||||
|
||||
- name: Upload to Github artifacts
|
||||
@@ -134,7 +143,7 @@ jobs:
|
||||
path: ${{ github.workspace }}/*.tgz
|
||||
|
||||
- name: Release to Github and s3
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: unraid/release-action@master
|
||||
env:
|
||||
GITHUB_USER: "unraid"
|
||||
@@ -145,7 +154,7 @@ jobs:
|
||||
# AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
||||
|
||||
- name: Create Sentry release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
uses: getsentry/action-release@v1
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user