forked from google/cloud-forensics-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 845 Bytes
/
pypi_push.yml
File metadata and controls
27 lines (25 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.12 🐍🐍🐍
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install poetry
run: |
python -m pip install poetry
- name: Install dependencies through Poetry
run: |
python -m poetry install --with dev
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags')
env:
PYPI_TOKEN: ${{ secrets.pypi_deploy }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build