Skip to content

Commit

Permalink
ci: changed to maintained github release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev357 committed Dec 29, 2024
1 parent 1a4ab48 commit cb7560b
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Release
on:
push:
tags:
- "v*"
- "v*.*.*"

jobs:
build-and-release:
Expand All @@ -25,21 +25,16 @@ jobs:
- name: Build the project
run: bun run build

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
body: "Automatically generated release."
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
name: dist
path: dist/

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/
asset_name: dist.zip
asset_content_type: application/zip
artifacts: dist
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true

0 comments on commit cb7560b

Please sign in to comment.