Skip to content

Commit

Permalink
Fix deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Jan 28, 2024
1 parent 8cb043c commit 16c48ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
PACKAGE_VERSION=$(hatch run python -c "import rpzip; print(rpzip.__version__)")
echo "Package version: [$PACKAGE_VERSION]"
[ "${{ github.ref_name }}" == "cli-v$PACKAGE_VERSION" ] || { exit 1; }
echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}"
echo "major_minor_version=v${PACKAGE_VERSION%.*}" >> $GITHUB_OUTPUT
- name: Build package
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ jobs:
echo "Release tag: [${{ github.ref_name }}]"
PACKAGE_VERSION=$(hatch run python -c "import repro_zipfile; print(repro_zipfile.__version__)")
echo "Package version: [$PACKAGE_VERSION]"
[ ${{ github.ref_name }} == "v$PACKAGE_VERSION" ] || { exit 1; }
echo "::set-output name=major_minor_version::v${PACKAGE_VERSION%.*}"
[ "${{ github.ref_name }}" == "v$PACKAGE_VERSION" ] || { exit 1; }
echo "major_minor_version=v${PACKAGE_VERSION%.*}" >> $GITHUB_OUTPUT
- name: Build package
run: |
hatch build
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.3.0
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: ${{ secrets.PYPI_TEST_USERNAME }}
password: ${{ secrets.PYPI_TEST_PASSWORD }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true

- name: Publish to Production PyPI
uses: pypa/gh-action-pypi-publish@v1.3.0
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: ${{ secrets.PYPI_PROD_USERNAME }}
password: ${{ secrets.PYPI_PROD_PASSWORD }}
skip_existing: false
skip-existing: false

0 comments on commit 16c48ca

Please sign in to comment.