Skip to content

Commit 03beff1

Browse files
committed
workflow to publish a release
1 parent 26a6ee0 commit 03beff1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/release.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
container: perl:latest
12+
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: install node.js
20+
run: apt -qqq update ; apt -qqq install nodejs
21+
22+
- name: install deps
23+
run: sh -c "cpanm -n File::ShareDir::Install ; cpanm -n --installdeps ."
24+
25+
- name: build
26+
run: sh -c "perl Makefile.PL ; make manifest dist"
27+
28+
- name: get release
29+
id: get_release
30+
uses: joutvhu/get-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: release
35+
uses: softprops/action-gh-release@v2
36+
if: startsWith(github.ref, 'refs/tags/v')
37+
with:
38+
files: App-rdapper-*.tar.gz

0 commit comments

Comments
 (0)