https://github.com/python-semantic-release/upload-to-gh-release
DEPRECATED: Upload artefacts to GitHub Releases using Python Semantic Release
https://github.com/python-semantic-release/upload-to-gh-release
Last synced: 5 months ago
JSON representation
DEPRECATED: Upload artefacts to GitHub Releases using Python Semantic Release
- Host: GitHub
- URL: https://github.com/python-semantic-release/upload-to-gh-release
- Owner: python-semantic-release
- License: mit
- Archived: true
- Created: 2023-05-14T19:15:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T22:29:53.000Z (over 1 year ago)
- Last Synced: 2025-07-20T16:02:08.201Z (6 months ago)
- Language: Dockerfile
- Homepage:
- Size: 72.3 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
# Python Semantic Release - Upload to GitHub Release Action
> **DEPRECATION NOTICE:** This action has been deprecated as it has been renamed to
> `python-semantic-release/publish-action`. Please update your workflows to use the new
> action.
This GitHub Action runs `semantic-release publish` using
[`python-semantic-release`](https://github.com/python-semantic-release/python-semantic-release).
Full documentation is available in the
[documentation](https://python-semantic-release.readthedocs.io/en/latest/) for Python
Semantic Release.
> **WARNING**: This Action is intended to be used in conjunction with Python
> Semantic Release configuration of the same version! Using this Action with
> a different version of Python Semantic Release may result in unexpected errors.
## Example usage
```yaml
name: CI/CD
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v9.8.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
#
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1
if: steps.release.outputs.released == 'true'
- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@v9.8.9
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
```
## Options
See [action.yml](./action.yml) for a description of the available options.