Skip to content

Commit

Permalink
chore: release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrodnek committed Sep 7, 2024
1 parent e7eb2cd commit 77e4a82
Show file tree
Hide file tree
Showing 5 changed files with 689 additions and 411 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check_pr_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- release_automate

jobs:
release:
name: Release to PyPI
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9" # Adjust the Python version as needed

- name: Install Poetry
uses: abatilo/actions-poetry@v2

- name: Install dependencies
run: poetry install

- name: Set up semantic release
run: poetry run python-semantic-release publish --noop
Loading

0 comments on commit 77e4a82

Please sign in to comment.