Skip to content

Commit

Permalink
Merge pull request #759 from analysiscenter/fix_release
Browse files Browse the repository at this point in the history
fix release
  • Loading branch information
SergeyTsimfer authored Jul 29, 2024
2 parents 86fe1f3 + f21252f commit 3446ceb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
pypi:

runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -22,12 +25,12 @@ jobs:
- name: Install dependencies
run: pip install --user -U pip poetry

- name: Build and publish
env:
_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
- name: Build
run: |
poetry install
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi $_PASSWORD
poetry publish --repository testpypi
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
pypi:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -42,11 +45,10 @@ jobs:
- name: Install dependencies
run: pip install --user --upgrade pip poetry

- name: Build and publish
env:
_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
- name: Build
run: |
poetry install
poetry build
poetry config pypi-token.pypi $_PASSWORD
poetry publish
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3446ceb

Please sign in to comment.