Skip to content

Merge branch 'main' of https://github.com/KrishPatel13/OpenAdapt #9

Merge branch 'main' of https://github.com/KrishPatel13/OpenAdapt

Merge branch 'main' of https://github.com/KrishPatel13/OpenAdapt #9

name: Semantic Release and PyPi Publish
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
- name: Python Semantic Release
id: semantic_release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.ADMIN_TOKEN }} # Use the new token for authentication
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
git_committer_name: "OpenAdapt Bot"
git_committer_email: "[email protected]"
publish:
needs: release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
python_version: "3.10"
poetry_version: "==1.5.1"
pypi_token: ${{ secrets.PYPI_TOKEN }}