Skip to content

Commit

Permalink
update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
OrionReed committed Mar 28, 2024
1 parent 0c6dd60 commit 9eb3ac0
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Specify the Node.js version
node-version: '20'

- name: Install dependencies
run: yarn install
Expand All @@ -29,24 +31,7 @@ jobs:
for dir in */ ; do
zip -r "${dir%/}.zip" "$dir"
done
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
uses: ncipollo/release-action@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/*.zip
asset_name: dist.zip
asset_content_type: application/zip
artifacts: "dist/*.zip"

0 comments on commit 9eb3ac0

Please sign in to comment.