-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Rename package to
meltano-tap-hubspot
(#70)
* chore: Rename package to `meltano-tap-hubspot` * Modernize release workflow
- Loading branch information
1 parent
bddc96f
commit 4fed92a
Showing
3 changed files
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
nox==2023.4.22 | ||
nox-poetry==1.0.2 | ||
pip==23.1.2 | ||
poetry==1.5.1 | ||
poetry-dynamic-versioning==0.24.0 | ||
nox-poetry==1.0.3 | ||
pip==23.3.2 | ||
poetry==1.7.1 | ||
poetry-dynamic-versioning==1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,42 @@ | ||
name: Publish with Dynamic Versioning | ||
name: Build | ||
|
||
on: | ||
release: | ||
types: [published] | ||
on: push | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
contents: write # Upload artifacts to release | ||
id-token: write # Use PyPI trusted publishing | ||
|
||
jobs: | ||
publish: | ||
name: Publish to PyPI | ||
build: | ||
name: Build and Inspect | ||
runs-on: ubuntu-latest | ||
environment: publishing | ||
env: | ||
PIP_CONSTRAINT: .github/workflows/constraints.txt | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
environment: | ||
name: publishing | ||
url: https://pypi.org/p/meltano-tap-hubspot | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
pipx inject poetry poetry-dynamic-versioning[plugin] | ||
poetry --version | ||
poetry self show plugins | ||
- name: Build | ||
run: poetry build | ||
|
||
name: Packages | ||
path: dist | ||
- name: Upload wheel to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: dist/*.whl | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
|
||
- name: Publish | ||
uses: pypa/[email protected].7 | ||
uses: pypa/[email protected].11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters