Skip to content

Commit

Permalink
adding release workflow (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Feb 27, 2023
1 parent f208d88 commit 855f040
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,37 @@ jobs:
run: |
python -m nox --non-interactive --error-on-missing-interpreter \
--session "${{matrix.session}}-${{matrix.python-version}}"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: "3.9"
- name: Build sdist and wheel
run: |
python -m pip install -U pip
python -m pip install -U build
python -m build .
- uses: actions/upload-artifact@v3
with:
path: dist/*

upload_pypi:
needs: [tests, build]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 855f040

Please sign in to comment.