Skip to content

Commit

Permalink
test version release
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jul 8, 2024
1 parent 55e4993 commit e825ed7
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,45 +100,45 @@ jobs:
# poetry config repositories.testpypi https://test.pypi.org/legacy/
# poetry publish --repository testpypi --username __token__ --password ${{ secrets.TEST_PYPI_API_TOKEN }}

publish-to-pypi:
needs:
- validate-tag
- build-and-package
- dry-run-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download distribution
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Publish to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}
# publish-to-pypi:
# needs:
# - validate-tag
# - build-and-package
# - dry-run-publish
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Download distribution
# uses: actions/download-artifact@v2
# with:
# name: dist
# path: dist
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.11'
# - name: Publish to PyPI
# uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.PYPI_KEY }}

create-github-release:
needs: publish-to-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Release on GitHub
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 }}
body: 'Automated release of version ${{ github.ref_name }}'
draft: false
prerelease: false
# create-github-release:
# needs: publish-to-pypi
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Create Release on GitHub
# 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 }}
# body: 'Automated release of version ${{ github.ref_name }}'
# draft: false
# prerelease: false

rollback:
needs: publish-to-pypi
Expand Down

0 comments on commit e825ed7

Please sign in to comment.