Skip to content

Commit

Permalink
update release workflow to use local refs and built-in workflows for …
Browse files Browse the repository at this point in the history
…installing python and hatch
  • Loading branch information
mikealfare committed Dec 5, 2024
1 parent 120d7ea commit f9c0d50
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defaults:
jobs:
release-prep:
name: "Release prep: generate changelog, bump version"
uses: dbt-labs/dbt-postgres/.github/workflows/release_prep_hatch.yml@main
uses: ./.github/workflows/release_prep_hatch.yml
with:
branch: ${{ inputs.branch }}
version: ${{ inputs.version }}
Expand All @@ -59,20 +59,15 @@ jobs:
with:
ref: ${{ needs.release-prep.outputs.release-branch }}
persist-credentials: false

- name: "Setup `hatch`"
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}

- name: "Set archive name"
id: archive
- uses: pypa/hatch@install
- id: archive
run: |
archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }}
echo "name=$archive_name" >> $GITHUB_OUTPUT
- name: "Build ${{ github.event.repository.name }}"
uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main
- uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main
with:
archive-name: ${{ steps.archive.outputs.name }}

Expand Down

0 comments on commit f9c0d50

Please sign in to comment.