Skip to content

Commit

Permalink
Add release GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
pervoj committed Apr 1, 2024
1 parent 4689e2c commit 1db9619
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and publish a release
on:
push:
tags: ["*"]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Build the package
run: |
npm install
npm run build
rm -rf node_modules
- name: Archive the built package
uses: TheDoctor0/zip-release@0.7.6
with:
type: zip
filename: release.zip
- name: Create a release and publish the archive
uses: ncipollo/release-action@v1.14.0
with:
artifacts: release.zip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1db9619

Please sign in to comment.