Skip to content

Commit 4cc2e48

Browse files
authored
build: do not require release to publish
Releases for alpha are a bit too much work. Just pushing a tag should be enough.
1 parent 6842a0a commit 4cc2e48

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
pull_request:
55
push:
66
branches: [master]
7-
release:
8-
types: [published]
7+
tags: ["*"]
98
workflow_dispatch:
109
inputs:
1110
pytest_addopts:
@@ -83,17 +82,17 @@ jobs:
8382
name: copier
8483

8584
publish:
86-
if: github.event_name == 'release'
85+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
8786
needs: build
8887
runs-on: ubuntu-latest
8988
steps:
9089
- uses: actions/checkout@v2
9190
with:
9291
fetch-depth: 0 # Needs all tags to compute dynamic version
93-
- name: Set up Python 3.8
92+
- name: Set up Python 3.10
9493
uses: actions/setup-python@v2
9594
with:
96-
python-version: 3.8
95+
python-version: 3.10
9796
- name: generate cache key PY
9897
run:
9998
echo "PY=$((python -VV; pip freeze) | sha256sum | cut -d' ' -f1)" >>

0 commit comments

Comments
 (0)