Skip to content

Commit

Permalink
feat: semantic release integration (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Dec 8, 2023
1 parent b5ab5e2 commit f82f660
Show file tree
Hide file tree
Showing 6 changed files with 1,044 additions and 13 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Release

on:
push:
tags:
- "*.*.*"
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -17,11 +18,18 @@ jobs:
with:
python-version: "3.10"
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python - -y
run: |
curl -sSL https://install.python-poetry.org | python - -y
poetry install
- name: Release
run: |
poetry run semantic-release version
poetry run semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: poetry build
- name: Publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run:
poetry publish
run: poetry publish
Loading

0 comments on commit f82f660

Please sign in to comment.