Skip to content

Commit

Permalink
ghactions: publish (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
wchatx authored Dec 5, 2021
1 parent c8b7298 commit 0be1220
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
release:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Get Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.12
- name: Install
run: poetry install
- name: Publish
run: poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
tags:
- '**'
pull_request: {}

jobs:
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Remember to update the version in the pyproject.toml.
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "esridumpgdf"
version = "0.1.0"
description = ""
readme = "README.md"
authors = ["wchatx <[email protected]>"]
license = "MIT"

Expand Down

0 comments on commit 0be1220

Please sign in to comment.