Skip to content

Commit 5128a32

Browse files
committed
fix(ci): debug release CI workflow
1 parent 1e5fabd commit 5128a32

1 file changed

Lines changed: 18 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Publish release and package
1+
name: Release
22
on:
33
push:
4-
branches:
5-
- master
4+
tags:
5+
- v*
66
jobs:
77
release:
8-
name: Release
8+
name: Release & publish
99
runs-on: ubuntu-latest
1010
steps:
1111

@@ -17,16 +17,13 @@ jobs:
1717
with:
1818
python-version: 3.7
1919

20-
- name: Upgrade pip and install build and twine
20+
- name: Install Python packages
2121
run: |
2222
pip install --upgrade pip
2323
pip install build twine
24+
pip install .
2425
25-
- name: Base modflow_devtools installation
26-
run: |
27-
pip --verbose install .
28-
29-
- name: Print package version
26+
- name: Print version
3027
run: |
3128
python -c "import modflow_devtools; print(modflow_devtools.__version__)"
3229
@@ -37,16 +34,16 @@ jobs:
3734
- name: Check distribution
3835
run: |
3936
twine check --strict dist/*
40-
37+
38+
- name: Publish package
39+
env:
40+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
41+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
42+
run: |
43+
twine upload dist/*
44+
4145
- name: Create release
42-
uses: "marvinpinto/action-automatic-releases@latest"
46+
uses: marvinpinto/action-automatic-releases@latest
4347
with:
44-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
45-
46-
# todo: set repo secrets and enable
47-
# - name: Publish package
48-
# env:
49-
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
50-
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
51-
# run: |
52-
# twine upload dist/*
48+
prerelease: true
49+
repo_token: ${{ github.token }}

0 commit comments

Comments
 (0)