Skip to content

Commit

Permalink
ci: update .github/workflows/release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linw1995 committed Oct 10, 2024
1 parent edc2090 commit d53411d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name: Release
on:
push:
tags:
- '*'
- "*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up PDM
uses: pdm-project/[email protected]
with:
python-version: 3.8
- name: Build release
run: |
pdm build
- name: Upload release
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
- name: Publish release to PYPI
run: |
pip install twine
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/*
- name: Publish release to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v1
- name: Set up PDM
uses: pdm-project/[email protected]
with:
python-version: 3.9
- name: Build release
run: |
pdm build
- name: Upload release
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- name: Publish release to PYPI
run: |
pip install twine
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/*
- name: Publish release to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d53411d

Please sign in to comment.