Skip to content

Commit

Permalink
upload release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
odorajbotoj committed Jun 19, 2024
1 parent f4a7770 commit aae9258
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: release

on:
release:
types:
- published

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- run: npm install

- run: npm run pack

- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: |
build/
update-release-notes:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2

- uses: softprops/action-gh-release@v2
with:
body: |
${{ steps.extract-release-notes.outputs.release_notes }}
upload-to-release:
needs:
- build
- update-release-notes
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ github.sha }}
path: artifact

- run: |
cp CHANGELOG.md LICENSE README.md artifact/
- run: |
zip -r ../${{ github.event.repository.name }}.zip *
working-directory: artifact
- uses: softprops/action-gh-release@v2
with:
files: |
${{ github.event.repository.name }}.zip

0 comments on commit aae9258

Please sign in to comment.