Skip to content

Commit

Permalink
fix: build distribution and attach assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Alvarenga committed Feb 27, 2025
1 parent 206e2b9 commit 199f5ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,19 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.releases_created }}

- name: Build Distribution
if: ${{ steps.release.outputs.releases_created }}
run: cd packages/distribution && npm run build

- name: Create and Zip Build Assets
if: ${{ steps.release.outputs.releases_created }}
run: |
zip -r open-scd.zip ./packages/distribution/build/*
tar -czvf open-scd.tar.gz ./packages/distribution/build/*
- name: Upload Build Assets
if: ${{ steps.release.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} open-scd.zip open-scd.tar.gz

0 comments on commit 199f5ff

Please sign in to comment.