Skip to content

Commit

Permalink
ci: test semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaiVenkat committed May 9, 2024
1 parent f3293ba commit 684849f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Semantic Release
on:
push:
branches:
- master
- ci/setup-semantic-release

jobs:
release:
Expand All @@ -15,8 +15,20 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install poetry --upgrade pip
poetry install
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry run semantic-release publish --post publish_command='poetry publish --repository testpypi'

0 comments on commit 684849f

Please sign in to comment.