Skip to content

refactor: BaseCloud method returns config instead of setting config #106

refactor: BaseCloud method returns config instead of setting config

refactor: BaseCloud method returns config instead of setting config #106

name: Tag and Publish Release
on:
push:
branches:
- main
concurrency: ${{ github.ref }}
jobs:
tag-release:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.tag-release.outputs.version}}
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Tag release
id: tag-release
run: |
version=$(cat VERSION)
git tag $version
git push origin $version
echo "version=$version" >> $GITHUB_OUTPUT
publish-release:
needs: tag-release
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.tag-release.outputs.version}}
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: "3.7"
- name: Install pypa/build
run: python -m pip install build --user
- name: Build sdist and wheel
run: python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}