1- name : " Autorelease"
1+ # Vendored from Autorelease 0.7.0
2+ # Update by updating Autorelease and running `autorelease vendor actions`
3+ name : " Autorelease testpypi"
24on :
35 pull_request :
46 branches :
7+ # TODO: this should come from yaml conf
58 - stable
69
710defaults :
@@ -10,19 +13,26 @@ defaults:
1013
1114jobs :
1215 deploy_testpypi :
16+ permissions :
17+ id-token : write
18+ if : ${{ github.repository == 'dwhswenson/contact_map' }}
1319 runs-on : ubuntu-latest
1420 name : " Deployment test"
1521 steps :
16- - uses : actions/checkout@v2
17- - uses : actions/setup-python@v2
22+ - uses : actions/checkout@v4
23+ - uses : actions/setup-python@v5
1824 with :
1925 python-version : " 3.x"
2026 - run : | # TODO: move this to an action
2127 source ./.github/workflows/autorelease-default-env.sh
2228 if [ -f "autorelease-env.sh" ]; then
2329 cat autorelease-env.sh >> $GITHUB_ENV
2430 fi
25- eval $INSTALL_AUTORELEASE
31+ if [ -f "./.autorelease/install-autorelease" ]; then
32+ source ./.autorelease/install-autorelease
33+ else
34+ eval $INSTALL_AUTORELEASE
35+ fi
2636 name: "Install autorelease"
2737 - run : |
2838 python -m pip install twine wheel
@@ -35,26 +45,36 @@ jobs:
3545 python setup.py sdist bdist_wheel
3646 twine check dist/*
3747 name: "Build and check package"
38- - uses : pypa/gh-action-pypi-publish@master
48+ - uses : pypa/gh-action-pypi-publish@release/v1
3949 with :
40- password : ${{ secrets.testpypi_password }}
4150 repository_url : https://test.pypi.org/legacy/
4251 name : " Deploy to testpypi"
4352 test_testpypi :
53+ if : ${{ github.repository == 'dwhswenson/contact_map' }}
4454 runs-on : ubuntu-latest
4555 name : " Test deployed"
4656 needs : deploy_testpypi
4757 steps :
48- - uses : actions/checkout@v2
49- - uses : actions/setup-python@v2
58+ - uses : actions/checkout@v4
59+ - uses : actions/setup-python@v5
5060 with :
5161 python-version : " 3.x"
5262 - run : | # TODO: move this to an action
5363 source ./.github/workflows/autorelease-default-env.sh
5464 if [ -f "autorelease-env.sh" ]; then
5565 cat autorelease-env.sh >> $GITHUB_ENV
5666 fi
57- eval $INSTALL_AUTORELEASE
67+ if [ -f "./.autorelease/install-autorelease" ]; then
68+ source ./.autorelease/install-autorelease
69+ else
70+ eval $INSTALL_AUTORELEASE
71+ fi
5872 name: "Install autorelease"
59- - run : test-testpypi
60-
73+ - name : " Install testpypi version"
74+ run : install-testpypi
75+ - name : " Test testpypi version"
76+ run : |
77+ if [ -f "autorelease-env.sh" ]; then
78+ cat autorelease-env.sh >> $GITHUB_ENV
79+ fi
80+ test-testpypi
0 commit comments