Skip to content

Commit 24ad098

Browse files
committed
Update release workflow
1 parent dc275c4 commit 24ad098

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131

3232
- name: Build distributions
3333
run: |
34-
source $HOME/.poetry/env
3534
poetry build -vvv
35+
3636
- name: Upload distribution artifacts
3737
uses: actions/upload-artifact@v1
3838
with:
@@ -57,17 +57,23 @@ jobs:
5757
path: dist
5858
- name: Install and set up Poetry
5959
run: |
60-
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
61-
python get-poetry.py --preview -y
60+
curl -fsS -o install-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/install-poetry.py
61+
python install-poetry.py --preview -y
62+
63+
- name: Update PATH
64+
shell: bash
65+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
66+
6267
- name: Check distributions
6368
run: |
6469
ls -la dist
70+
6571
- name: Publish to PyPI
6672
env:
6773
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
6874
run: |
69-
source $HOME/.poetry/env
7075
poetry publish
76+
7177
- name: Create Release
7278
id: create_release
7379
uses: actions/create-release@v1

0 commit comments

Comments
 (0)