Skip to content

Commit 21a0368

Browse files
committed
Update CI and release workflows
1 parent 2c30e4b commit 21a0368

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ jobs:
2626
run: bun run build
2727

2828
- name: Lint
29-
run: bunx eslint .
29+
run: bun run lint
30+
31+
- name: Test
32+
run: bun run test

.github/workflows/release.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
68

79
jobs:
8-
build-and-attach:
10+
build-and-release:
911
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1014

1115
steps:
1216
- name: Checkout repository
@@ -24,9 +28,12 @@ jobs:
2428
run: bun run build
2529

2630
- name: Create artifact archive
27-
run: tar -czvf release.tar.gz built/
31+
run: tar -czvf release-${{ github.ref_name }}.tar.gz built/
2832

29-
- name: Upload release asset
33+
- name: Create GitHub release
3034
uses: softprops/action-gh-release@v2
3135
with:
32-
files: release.tar.gz
36+
tag_name: ${{ github.ref_name }}
37+
name: ${{ github.ref_name }}
38+
generate_release_notes: true
39+
files: release-${{ github.ref_name }}.tar.gz

0 commit comments

Comments
 (0)