maint: changed upoload artifact tool #3
Workflow file for this run
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
name: Build and Upload Release Asset | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build-and-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install `uv` | |
run: | | |
python -m pip install --upgrade pip | |
pip install uv # Install `uv` for building | |
- name: Build the package with `uv` | |
run: uv build | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: Release ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: dist/* # Path to built assets | |
draft: false # Mark as published (set true if draft is needed) | |
prerelease: false # Mark as prerelease if applicable | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |