Skip to content

Commit

Permalink
ci: fixed asset attachment issue
Browse files Browse the repository at this point in the history
added condition to autorun after merge
  • Loading branch information
Tbaile committed Oct 26, 2023
1 parent 2da2b68 commit 24168db
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Release Please

on:
pull_request:
types:
- closed
branches:
- 'release-please*'
workflow_dispatch:

permissions:
Expand All @@ -10,6 +15,7 @@ permissions:
jobs:
release-please:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4
- run: |
Expand All @@ -21,6 +27,6 @@ jobs:
package-name: ns8-user-manager
- name: Attach Release
if: ${{ steps.release.outputs.release_created }}
run:
mv dist ns8-user-manager-${{ steps.release.outputs.tag_name }}
gh release upload ${{ steps.release.outputs.tag_name }} ns8-user-manager-${{ steps.release.outputs.tag_name }}
run: |
tar czf ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz -C dist .
gh release upload ${{ steps.release.outputs.tag_name }} ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz

0 comments on commit 24168db

Please sign in to comment.