Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release workflow #27

Merged
merged 1 commit into from
Dec 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: dbt-trino release
on:
workflow_dispatch:

env:
version_number: 'cat .bumpversion.cfg | grep current_version | cut -d " " -f3'

jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,6 +39,9 @@ jobs:
with:
python-version: "3.9.5"

- name: Get dbt-trino version
run: echo "version_number=$(cat .bumpversion.cfg | grep current_version | cut -d " " -f3)" >> $GITHUB_ENV
findinpath marked this conversation as resolved.
Show resolved Hide resolved

# Need to set an output variable because env variables can't be taken as input
# This is needed for the next step with releasing to GitHub
- name: Find release type
Expand Down Expand Up @@ -81,6 +81,9 @@ jobs:
with:
python-version: "3.9.5"

- name: Get dbt-trino version
run: echo "version_number=$(cat .bumpversion.cfg | grep current_version | cut -d " " -f3)" >> $GITHUB_ENV

- name: Release to pypi
env:
TWINE_USERNAME: __token__
Expand Down