Skip to content

Commit

Permalink
bug: release upload workflow - bump up to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ykumards committed Sep 19, 2024
1 parent 780659c commit 1b22120
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 30 deletions.
38 changes: 9 additions & 29 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,18 @@ jobs:
if: success()
uses: pypa/gh-action-pypi-publish@release/v1

- name: Create GitHub Release
if: success()
id: create_release
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Pass the GitHub token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }} # Use the current tag
release_name: Release ${{ github.ref }} # Name the release
body: |
Automated release for version ${{ github.ref }}
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: List dist contents for debugging
if: success()
run: ls -al dist/
prerelease: true

- name: Upload .whl to GitHub Release
if: success()
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.whl # This will match the actual file in the dist/ folder
asset_name: nag-${{ github.ref }}.whl # Use dynamic name based on tag/version
asset_content_type: application/zip

- name: Upload .tar.gz to GitHub Release
if: success()
uses: actions/upload-release-asset@v1
- name: Upload Release Assets
uses: AButler/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.tar.gz # Match the tar.gz file
asset_name: nag-${{ github.ref }}.tar.gz
asset_content_type: application/gzip
files: "dist/*"
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[tool.poetry]
name = "nag"
version = "0.2.3a3"
version = "0.2.3a4"
description = "A command line time blocker that nags you to get things done"
authors = ["Yogesh Kumar <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1b22120

Please sign in to comment.