Skip to content

Commit

Permalink
add github release
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Apr 16, 2024
1 parent 858e994 commit 5323d3f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@ concurrency:

jobs:
release-inputs:
name: PyPI - ${{ inputs.deploy-to }}
name: Release inputs
runs-on: ubuntu-latest
environment:
name: ${{ inputs.deploy-to }}
url: ${{ vars.PYPI_PROJECT_URL }}
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
outputs:
version: ${{ steps.version.outputs.version }}
archive-name: ${{ steps.archive.outputs.name }}
Expand Down Expand Up @@ -78,7 +73,7 @@ jobs:
echo "path=$path" >> $GITHUB_OUTPUT
pypi-release:
name: PyPI - ${{ inputs.deploy-to }}
name: PyPI release
runs-on: ubuntu-latest
needs: [release-inputs]
environment:
Expand Down Expand Up @@ -108,7 +103,7 @@ jobs:
archive-name: ${{ needs.release-inputs.outputs.archive-name }}

github-release:
name: GitHub Release
name: GitHub release
if: ${{ !failure() && !cancelled() }}
needs: [release-inputs]
uses: dbt-labs/dbt-release/.github/workflows/github-release.yml@main
Expand All @@ -119,7 +114,7 @@ jobs:
test_run: ${{ inputs.deploy-to == 'test' }}

docker-release:
name: "Docker Release"
name: Docker release
needs: [release-inputs, github-release] # docker relies on the published tag from github-release
if: ${{ !failure() && !cancelled() }}
permissions:
Expand Down

0 comments on commit 5323d3f

Please sign in to comment.