Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joselsegura committed Sep 25, 2020
1 parent 048a397 commit 4c2e298
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/release_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ jobs:
run: |
python setup.py sdist
python setup.py bdist_wheel
- name: Publish
uses: actions/upload-artifact@v2
with:
name: Distribution files
path: dist/
- name: Extract tag name
id: tag
run: |
echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.tag.outputs.TAG }}
release_name: Release ${{ steps.tag.outputs.TAG }}
draft: false
prerelease: false
- name: Upload source distribution
Expand All @@ -45,8 +44,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/garage-door-controller-${{ github.ref }}.tar.gz
asset_name: garage-door-controller-${{ github.ref }}.tar.gz
asset_path: ./dist/garage-door-controller-${{ steps.tag.outputs.TAG }}.tar.gz
asset_name: garage-door-controller-${{ steps.tag.outputs.TAG }}.tar.gz
asset_content_type: application/gzip
- name: Upload wheel distribution
id: upload-wheel-dist-asset
Expand All @@ -55,9 +54,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/garage-door-controller-${{ github.ref }}-py3-none-any.whl
asset_name: garage-door-controller-${{ github.ref }}-py3-none-any.whl
asset_path: ./dist/garage-door-controller-${{ steps.tag.outputs.TAG }}-py3-none-any.whl
asset_name: garage-door-controller-${{ steps.tag.outputs.TAG }}-py3-none-any.whl
asset_content_type: application/zip



0 comments on commit 4c2e298

Please sign in to comment.