Skip to content

Commit

Permalink
fix(ci): fix publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed Jan 14, 2022
1 parent 2a9ad4e commit bc7f3b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
files: ops2deb_linux_amd64

publish:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
needs: [test_and_build]
if: startsWith(github.ref, 'refs/tags')
steps:
Expand All @@ -151,8 +151,13 @@ jobs:
- name: Install Poetry
uses: snok/install-poetry@v1

- name: Get Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Build Distribution
run: poetry run poetry build
run: |
poetry version "$RELEASE_VERSION"
poetry build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit bc7f3b0

Please sign in to comment.