Fix big with oauth2 requests after token refresh Latest #24
Workflow file for this run
This file contains 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
name: Deploy to QA if tagged as QA release | |
on: | |
release: | |
types: [ released ] | |
jobs: | |
check_qa_tag: | |
name: Check if the release is tagged as QA | |
runs-on: ubuntu-latest | |
outputs: | |
has_qa_tag: ${{ steps.check-qa-tag.outputs.run_jobs }} | |
steps: | |
- name: check qa tag ${{ github.ref }} | |
id: check-qa-tag | |
run: | | |
if [[ ${{ github.ref }} =~ refs\/tags\/qa ]]; then | |
echo "run_jobs=true" >> $GITHUB_OUTPUT | |
else | |
echo "run_jobs=false" >> $GITHUB_OUTPUT | |
fi | |
publish_qa: | |
needs: [ check_qa_tag ] | |
if: needs.check_qa_tag.outputs.has_qa_tag == 'true' | |
name: Publish package to test.pypi.org | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Publish distribution package to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ |