Skip to content

Publish

Publish #2

Workflow file for this run

name: "Publish"
on:
workflow_dispatch:
inputs:
deploy-to:
description: "Choose whether to deploy to test or prod"
type: environment
default: "test"
branch:
description: "Choose the branch to release from"
type: string
default: "actions/public-pypi-deploy"
permissions:
contents: read
jobs:
unit-tests:
uses: ./.github/workflows/unit-tests.yml
with:
branch: ${{ inputs.branch }}
integration-tests:

Check failure on line 24 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 24, Col: 3): Error calling workflow 'dbt-labs/dbt-athena/.github/workflows/integration-tests.yml@8476d7ca722f450db273248ab29e5b2e4144ebf1'. The workflow is requesting 'id-token: write', but is only allowed 'id-token: none'.
uses: ./.github/workflows/integration-tests.yml
with:
branch: ${{ inputs.branch }}
repository: ${{ github.repository }}
secrets: inherit
publish-dbt-athena:
needs: [unit-tests, integration-tests]
uses: ./.github/workflows/publish-pypi.yml
with:
deploy-to: ${{ inputs.deploy-to }}
branch: ${{ inputs.branch }}
publish-dbt-athena-community:
# dbt-athena-community is hard pinned to dbt-athena to ensure they are the same
# this means we need to finish publishing dbt-athena before starting to build dbt-athena-community
needs: publish-dbt-athena
uses: ./.github/workflows/publish-pypi.yml
with:
package: "dbt-athena-community"
deploy-to: ${{ inputs.deploy-to }}
branch: ${{ inputs.branch }}