Skip to content

Commit 2aa24f0

Browse files
committed
start adding release artifact
1 parent c1db42d commit 2aa24f0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
authors:
8+
- octocat
9+
- dependabot
10+
categories:
11+
- title: Breaking Changes 🛠
12+
labels:
13+
- Semver-Major
14+
- breaking-change
15+
- title: Exciting New Features 🎉
16+
labels:
17+
- Semver-Minor
18+
- enhancement
19+
- title: Other Changes
20+
labels:
21+
- "*"

.github/workflows/main.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,21 @@ jobs:
117117
echo CONTAINER_TAGS="${CONTAINER_TAGS}"
118118
echo ::set-output name=container_tags::${CONTAINER_TAGS}
119119
120-
- name: Publish Release Package
120+
- name: Publish Release to PyPi
121121
if: github.event.action == 'published'
122122
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
123123
with:
124124
user: __token__
125125
password: ${{ secrets.PYPI_API_TOKEN }}
126126

127+
- name: Attach Wheel Artifact to GH Release
128+
if: ${{ github.event.action == 'published' }}
129+
uses: softprops/action-gh-release@v1
130+
with:
131+
files: dist/netfoundry-*.whl
132+
fail_on_unmatched_files: true
133+
generate_release_notes: true
134+
127135
- name: Set up QEMU
128136
uses: docker/setup-qemu-action@master
129137
with:

0 commit comments

Comments
 (0)