Skip to content

Commit 8082ed4

Browse files
committed
replace publish script
1 parent 9305018 commit 8082ed4

File tree

3 files changed

+37
-77
lines changed

3 files changed

+37
-77
lines changed

.github/workflows/publish-to-live-pypi.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/publish-to-test-pypi.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish django-formset
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
publish:
10+
name: "Publish release"
11+
runs-on: "ubuntu-latest"
12+
13+
environment:
14+
name: deploy
15+
16+
strategy:
17+
matrix:
18+
python-version: ["3.9"]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
npm install --also=dev
29+
python -m pip install --upgrade pip
30+
python -m pip install build --user
31+
- name: Build 🐍 Python 📦 Package
32+
run: python -m build --sdist --wheel --outdir dist/
33+
- name: Publish 🐍 Python 📦 Package to PyPI
34+
if: startsWith(github.ref, 'refs/tags')
35+
uses: pypa/gh-action-pypi-publish@master
36+
with:
37+
password: ${{ secrets.PYPI_API_TOKEN_SORTABLE2 }}

0 commit comments

Comments
 (0)