Skip to content

Commit cf99b26

Browse files
authored
Merge pull request #105 from redhat-performance/ci/tar-release
Add tar workflow on release
2 parents 7c46072 + 1cb078a commit cf99b26

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
jobs:
7+
package_repo:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Package the needed files
16+
run: >
17+
tar -cf /tmp/test_tools.tar
18+
--exclude ".github*"
19+
--exclude ".git*"
20+
--exclude "tests/*"
21+
.
22+
23+
- name: Upload artifact to release
24+
run: gh release upload ${{ github.event.release.tag_name }} /tmp/test_tools.tar
25+
env:
26+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)