Skip to content

Commit e7b1502

Browse files
authored
Merge pull request #3 from d1vanloon/fix-release
Fix release
2 parents 2db406b + 65b5d05 commit e7b1502

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
description: 'Version to set in package.json (optional)'
88
required: false
99
type: string
10-
create_artifact:
11-
description: 'Whether to create a release artifact'
10+
create_release:
11+
description: 'Whether to create a release'
1212
required: false
1313
type: boolean
1414
default: false
@@ -73,17 +73,16 @@ jobs:
7373
echo "Build verification successful"
7474
7575
- name: Create release archive
76-
if: inputs.create_artifact
76+
if: inputs.create_release
7777
run: |
7878
cd dist
7979
zip -r ../gh-pr-approve-count-v${{ steps.version.outputs.version }}.zip .
8080
cd ..
8181
echo "Created release archive: gh-pr-approve-count-v${{ steps.version.outputs.version }}.zip"
82-
83-
- name: Upload release artifact
84-
if: inputs.create_artifact
85-
uses: actions/upload-artifact@v4
82+
83+
- name: Create release
84+
uses: softprops/action-gh-release@v2
85+
if: inputs.create_release
8686
with:
87-
name: gh-pr-approve-count-v${{ steps.version.outputs.version }}
88-
path: gh-pr-approve-count-v${{ steps.version.outputs.version }}.zip
89-
retention-days: 30
87+
files: gh-pr-approve-count-v${{ steps.version.outputs.version }}.zip
88+
generate_release_notes: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
uses: ./.github/workflows/build.yml
2626
with:
2727
version: ${{ needs.extract-version.outputs.version }}
28-
create_artifact: true
28+
create_release: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pr-approve-count",
3-
"version": "0.0.0-development",
3+
"version": "0.0.0",
44
"description": "",
55
"private": true,
66
"scripts": {

0 commit comments

Comments
 (0)