Release 0.6.2 #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Vendored from Autorelease 0.6.2 | |
| # Update by updating Autorelease and running `autorelease vendor actions` | |
| name: "Autorelease testpypi" | |
| on: | |
| pull_request: | |
| branches: | |
| # TODO: this should come from yaml conf | |
| - stable | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| deploy_testpypi: | |
| permissions: | |
| id-token: write | |
| if: ${{ github.repository == 'dwhswenson/autorelease' }} | |
| runs-on: ubuntu-latest | |
| name: "Deployment test" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - run: | # TODO: move this to an action | |
| source ./.github/workflows/autorelease-default-env.sh | |
| if [ -f "autorelease-env.sh" ]; then | |
| cat autorelease-env.sh >> $GITHUB_ENV | |
| fi | |
| if [ -f "./.autorelease/install-autorelease" ]; then | |
| source ./.autorelease/install-autorelease | |
| else | |
| eval $INSTALL_AUTORELEASE | |
| fi | |
| name: "Install autorelease" | |
| - run: | | |
| python -m pip install twine wheel | |
| name: "Install release tools" | |
| - run: | | |
| bump-dev-version | |
| python setup.py --version | |
| name: "Bump testpypi dev version" | |
| - run: | | |
| python setup.py sdist bdist_wheel | |
| twine check dist/* | |
| name: "Build and check package" | |
| - uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| repository_url: https://test.pypi.org/legacy/ | |
| name: "Deploy to testpypi" | |
| test_testpypi: | |
| if: ${{ github.repository == 'dwhswenson/autorelease' }} | |
| runs-on: ubuntu-latest | |
| name: "Test deployed" | |
| needs: deploy_testpypi | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - run: | # TODO: move this to an action | |
| source ./.github/workflows/autorelease-default-env.sh | |
| if [ -f "autorelease-env.sh" ]; then | |
| cat autorelease-env.sh >> $GITHUB_ENV | |
| fi | |
| if [ -f "./.autorelease/install-autorelease" ]; then | |
| source ./.autorelease/install-autorelease | |
| else | |
| eval $INSTALL_AUTORELEASE | |
| fi | |
| name: "Install autorelease" | |
| - name: "Install testpypi version" | |
| run: install-testpypi | |
| - name: "Test testpypi version" | |
| run: | | |
| if [ -f "autorelease-env.sh" ]; then | |
| cat autorelease-env.sh >> $GITHUB_ENV | |
| fi | |
| test-testpypi |