Skip to content

Commit

Permalink
feat: install poetry differently
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHowarth committed Jan 8, 2020
1 parent 7ceed82 commit 73bceda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
$HOME/.poetry/bin/poetry config pypi-token.pypi ${PYPI_TOKEN}
env:
PYPI_TOKEN: "dummy-token"
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic # Need an `id` for output variables
Expand All @@ -28,4 +31,3 @@ jobs:
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: "dummy-token"
8 changes: 7 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
}],
["@semantic-release/exec", {
"prepareCmd": "$HOME/.poetry/bin/poetry build",
"publishCmd": "$HOME/.poetry/bin/poetry config pypi-token.pypi ${PYPI_TOKEN} && poetry publish"
"publishCmd": "$HOME/.poetry/bin/poetry publish"
}],
["@semantic-release/github", {
"assets": [
{"path": "dist/*.tar.gz", "label": "tarball"},
{"path": "dist/*.whl", "label": "wheel"}
]
}],
]
}

0 comments on commit 73bceda

Please sign in to comment.