Skip to content

Commit

Permalink
Fix GitHub Actions Publish workflow and add more rules to EditorConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
vbe0201 committed Dec 21, 2019
1 parent 5bd07c8 commit c20f23b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ indent_size = 4
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100

[*.{md,rst}]
trim_trailing_whitespace = false

[*.{toml,yml}]
indent_size = 2

[Makefile]
indent_style = tab

[*.bat]
end_of_line = crlf
indent_style = tab
20 changes: 15 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish anysocks
name: Publish anysocks to PyPI

on:
release:
Expand All @@ -9,8 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
- name: Set up Python
uses: actions/setup-python@v1
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit c20f23b

Please sign in to comment.