Firebolt Python Release #29
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
name: Firebolt Python Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pre-release-tag: | ||
required: false | ||
description: 'Tag for pre-release (optional)' | ||
major-release: | ||
required: false | ||
description: 'Trigger a major release (optional). Leave empty for regular release.' | ||
version: | ||
required: true | ||
description: 'Version to release. Should be aligned with dbt-core.' | ||
jobs: | ||
integration-tests: | ||
uses: ./.github/workflows/integration-tests.yml | ||
Check failure on line 18 in .github/workflows/python-release-org.yml GitHub Actions / Firebolt Python ReleaseInvalid workflow file
|
||
secrets: | ||
FIREBOLT_USERNAME_DEV: ${{ secrets.FIREBOLT_USERNAME_DEV }} | ||
FIREBOLT_PASSWORD_DEV: ${{ secrets.FIREBOLT_PASSWORD_DEV }} | ||
FIREBOLT_USERNAME_STAGING: ${{ secrets.FIREBOLT_USERNAME_STAGING }} | ||
FIREBOLT_PASSWORD_STAGING: ${{ secrets.FIREBOLT_PASSWORD_STAGING }} | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
needs: integration-tests | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.RELEASE_PAT }} | ||
- name: Apply Changie changelog | ||
uses: miniscruff/[email protected] | ||
with: | ||
version: v1.10.2 | ||
args: batch ${{ inputs.version }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Merge into CHANGELOG.md | ||
uses: miniscruff/[email protected] | ||
with: | ||
version: v1.10.2 | ||
args: merge | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup git config | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
shell: bash | ||
- name: Commit changelog | ||
run: | | ||
git add .changes/ | ||
git add CHANGELOG.md | ||
git commit -m "Changelog update" | ||
git push origin main | ||
- name: 'Publish action' | ||
uses: firebolt-db/action-python-release@main | ||
with: | ||
pre-release-tag: ${{ inputs.pre-release-tag }} | ||
major-release: ${{ inputs.major-release }} | ||
pypi-username: ${{ secrets.PYPI_USERNAME }} | ||
pypi-password: ${{ secrets.PYPI_PASSWORD }} | ||
version-file-path: dbt/adapters/firebolt/__init__.py | ||
version-override: ${{ inputs.version }} |