Skip to content

Commit

Permalink
workflow to package to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Mar 13, 2021
1 parent b6aff1c commit 605efd2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Package

on:
release:
types: [created]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6]
os: [ubuntu-latest]

steps:
- name: Switch branch
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
which python
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Flit publish
run:
flit publish
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# FLIT_INDEX_URL: https://test.pypi.org/legacy/

0 comments on commit 605efd2

Please sign in to comment.