Skip to content

Commit

Permalink
GitHub Actions Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tobywf committed Feb 19, 2020
1 parent 71892a8 commit 1515954
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: requirements
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry pre-commit
- name: install
run: |
poetry install
- name: check
- name: Run checks
run: |
pre-commit run --all-files
poetry run ./lint "CHECK"
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: XML dataclasses publish
on:
release:
types:
- created
jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Build
run: |
poetry build
- name: Publish
run: |
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
poetry publish
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "xml_dataclasses"
version = "0.0.3"
version = "0.0.4"
description = "(De)serialize XML documents into specially-annotated dataclasses"
authors = ["Toby Fleming <[email protected]>"]
license = "MPL-2.0"
readme = "README.md"
homepage = "https://github.com/tobywf/xml_dataclasses"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 1515954

Please sign in to comment.