Skip to content

Commit 1515954

Browse files
committed
GitHub Actions Publish
1 parent 71892a8 commit 1515954

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ jobs:
1919
uses: actions/setup-python@v1
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
- name: requirements
22+
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install poetry pre-commit
26-
- name: install
27-
run: |
2826
poetry install
29-
- name: check
27+
- name: Run checks
3028
run: |
3129
pre-commit run --all-files
3230
poetry run ./lint "CHECK"

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: XML dataclasses publish
2+
on:
3+
release:
4+
types:
5+
- created
6+
jobs:
7+
publish:
8+
name: publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.7'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install poetry
20+
- name: Build
21+
run: |
22+
poetry build
23+
- name: Publish
24+
run: |
25+
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
26+
poetry publish

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tool.poetry]
22
name = "xml_dataclasses"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "(De)serialize XML documents into specially-annotated dataclasses"
55
authors = ["Toby Fleming <[email protected]>"]
66
license = "MPL-2.0"
77
readme = "README.md"
88
homepage = "https://github.com/tobywf/xml_dataclasses"
99
classifiers = [
10-
"Development Status :: 2 - Pre-Alpha",
10+
"Development Status :: 3 - Alpha",
1111
"Intended Audience :: Developers",
1212
"Natural Language :: English",
1313
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)