Skip to content

Commit

Permalink
Merge pull request #35 from nautobot/gha
Browse files Browse the repository at this point in the history
Fix publishing in the CI pipeline
  • Loading branch information
jvanderaa authored Oct 5, 2021
2 parents 2bb311b + 37435ec commit 0ef2d9f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: "CI"
on:
on: # yamllint disable
- "push"
- "pull_request"
jobs:
Expand Down Expand Up @@ -181,6 +181,18 @@ jobs:
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.9"
- name: "Install Python Packages"
run: "pip install poetry"
- name: "Set env"
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Push to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
with:
Expand Down

0 comments on commit 0ef2d9f

Please sign in to comment.