Skip to content

Commit 192b3eb

Browse files
committed
Get egg name
1 parent e1edde9 commit 192b3eb

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
name: Create python distribution for release
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Dump Github Context
14-
env:
15-
GITHUB_CONTEXT: ${{ toJson(github) }}
16-
run: echo "$GITHUB_CONTEXT"
1713
- name: Setup Python 2.7
1814
uses: actions/setup-python@v1
1915
with:
@@ -23,6 +19,11 @@ jobs:
2319
- name: Create Egg
2420
run: >-
2521
make egg
22+
- name: Get Egg Name
23+
id: get_egg
24+
run: |
25+
egg=$(ls dist/)
26+
echo "::set-output name=egg::$egg"
2627
- name: Create Release
2728
id: create_release
2829
uses: actions/create-release@v1
@@ -40,6 +41,6 @@ jobs:
4041
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4142
with:
4243
upload_url: ${{ steps.create_release.outputs.upload_url }}
43-
asset_path: '["./dist/*.egg"]'
44-
asset_name: Testing
44+
asset_path: ${{ steps.get_egg.outputs.egg }}
45+
asset_name: ${{ steps.get_egg.outputs.egg }}
4546
asset_content_type: application/zip

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='python-test',
5-
version='0.0.4',
5+
version='0.0.6',
66
author='Tyler Bailey',
77
packages=['python_test'],
88
)

0 commit comments

Comments
 (0)