-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: release upload workflow - bump up to v3
- Loading branch information
Showing
2 changed files
with
10 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|