Skip to content

Commit

Permalink
Cleanup publishing action (#128)
Browse files Browse the repository at this point in the history
* Cleanup publishing action

* Create dependabot.yml

* Update pythonpackage.yml

* Update pythonpackage.yml
  • Loading branch information
jbusecke authored May 26, 2021
1 parent 0c037d2 commit 5db12d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
deploy:
if: github.repository == 'GliderToolsCommunity/GliderTools'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -20,11 +21,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools-scm wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERS }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
pip install setuptools setuptools-scm wheel twine check-manifest toml
- name: Build tarball and wheels
run: |
python setup.py sdist bdist_wheel
python -m twine upload dist/* --skip-existing
git clean -xdf
git restore -SW .
python -m build --sdist --wheel .
- name: Test the artifacts
run: |
python -m twine check dist/*
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
7 changes: 7 additions & 0 deletions dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
# Check for updates once a week
interval: 'weekly'

0 comments on commit 5db12d6

Please sign in to comment.