1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2025-09-09 19:47:30 +00:00

use poetry in ci

This commit is contained in:
2021-10-09 15:13:30 +03:00
parent b86ef30397
commit 9e40b6fbbd
3 changed files with 47 additions and 24 deletions

View File

@@ -10,17 +10,25 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm setuptools_scm_git_archive wheel twine
- name: Build and publish
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Load cached Poetry installation
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-0
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install deps
run: poetry install
- name: Build
run: poetry build
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}
REPO_USERNAME: __token__
REPO_PASSWORD: ${{ secrets.pypi_token }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
poetry publish -n -u $REPO_USERNAME -p $REPO_PASSWORD