Skip to content

Commit 27e24bd

Browse files
committed
Add release workflow to github actions
1 parent 1edbc5a commit 27e24bd

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ on:
88
jobs:
99
build:
1010
name: Build a package
11-
1211
runs-on: ubuntu-latest
13-
1412
steps:
1513
- uses: actions/checkout@v3
1614

17-
- uses: softprops/action-gh-release@v1
18-
if: startsWith(github.ref, 'refs/tags/') # Run only when tagged like v1.0.1
15+
release:
16+
name: Release
17+
runs-on: ubuntu-latest
18+
if: startsWith(github.ref, 'refs/tags/') # Run only when tagged like v1.0.1
19+
steps:
20+
- id: package_name
21+
run: |
22+
echo "package_name=$(basename pkg/*.gem | tail -n1)" >> $GITHUB_OUTPUT
23+
24+
- uses: softprops/action-gh-release@v2
1925
with:
20-
files: packages/${{steps.package_name.outputs.package_name}}.zip
26+
files: pkg/${{steps.package_name.outputs.package_name}}
2127
generate_release_notes: true
28+
- uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)