Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: actions pipeline #18

Merged
merged 17 commits into from
Apr 5, 2024
43 changes: 21 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,27 @@ jobs:
- name: Check code style
run: poetry run ruff check

release:
needs: [run-tests, code-style-check, type-check]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2'
- name: Install Dependencies
run: |
pip install poetry
poetry install
- name: Semantic Release
run: poetry run semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

release:
needs: [run-tests, code-style-check, type-check]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2'
- name: Install Dependencies
run: |
pip install poetry
poetry install
- name: Semantic Release
run: poetry run semantic-release publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

# publish:
# needs: [run-tests, code-style-check, type-check]
Expand Down
Loading