generated from meltano/basic-python-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
611612e
commit 82142a2
Showing
16 changed files
with
75 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: Build and Inspect | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: hynek/build-and-inspect-python-package@v2 | ||
|
||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/dbt-ext | ||
if: startsWith(github.ref, 'refs/tags/') | ||
permissions: | ||
id-token: write # Needed for OIDC PyPI publishing | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Publish | ||
uses: pypa/[email protected] | ||
|
||
upload-to-release: | ||
name: Upload files to release | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
permissions: | ||
contents: write # Needed for uploading files to the release | ||
id-token: write # Needed for attestations | ||
attestations: write # Needed for attestations | ||
|
||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: Packages | ||
path: dist | ||
- name: Upload wheel and sdist to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: dist/singer_sdk* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
- uses: actions/attest-build-provenance@v1 | ||
id: attest | ||
with: | ||
subject-path: "./dist/edk*" | ||
- name: Upload attestations to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: ${{ steps.attest.outputs.bundle-path }} | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
asset_name: attestations.intoto.jsonl |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Files used to initialize a dbt project.""" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Empty file.
Empty file.
Empty file.
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