mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2024-11-10 23:36:52 +00:00
34 lines
740 B
YAML
34 lines
740 B
YAML
name: Upload Python Package
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
- 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:
|
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi_token }}
|
|
run: |
|
|
poetry publish -n
|