Skip to content

Commit

Permalink
ci updated
Browse files Browse the repository at this point in the history
  • Loading branch information
daimor committed Jun 21, 2024
1 parent b69e366 commit 1f858bc
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- new
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install requirements
Expand All @@ -45,11 +45,11 @@ jobs:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
if: github.event_name == 'push'
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand All @@ -76,18 +76,15 @@ jobs:
run: ./scripts/build-dist.sh
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Create Beta Release
id: create_release
if: github.event_name == 'push'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.set-version.outputs.version }}
prerelease: ${{ github.event_name != 'release' }}
files: dist/${{ steps.set-version.outputs.name }}.whl
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'release'
with:
ref: main
Expand Down

0 comments on commit 1f858bc

Please sign in to comment.