Skip to content

Commit

Permalink
add github publishing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Feb 2, 2024
1 parent bf8c3ec commit 9a2c690
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ on:
release:
types: [created]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
environment: release
strategy:
max-parallel: 4
matrix:
Expand All @@ -29,6 +33,7 @@ jobs:
hatch run test
lint:
runs-on: ubuntu-latest
environment: release
strategy:
max-parallel: 4
matrix:
Expand All @@ -49,6 +54,9 @@ jobs:
hatch run lint:style
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
needs: [test, lint]
steps:
- uses: actions/checkout@v3
Expand All @@ -61,10 +69,8 @@ jobs:
run: |
pip install -e .
pip install hatch
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
- name: Build
run: |
hatch build
hatch publish -y
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion src/datasette_reconcile/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2023-present David Kane <david@dkane.net>
#
# SPDX-License-Identifier: MIT
__version__ = "0.6.1"
__version__ = "0.6.2"

0 comments on commit 9a2c690

Please sign in to comment.