Skip to content

Commit 1a5330d

Browse files
authored
CI: Fix releases (#175)
* dependabot: automatically update GitHub Actions Signed-off-by: William Woodruff <[email protected]> * workflows/release: refactor to a release-first flow No longer creates the release; the releaser is expected to do that. Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]>
1 parent 22e5f98 commit 1a5330d

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: daily

.github/workflows/release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
2-
push:
3-
tags:
4-
- 'v*'
2+
release:
3+
types:
4+
- published
55

66
name: release
77

@@ -11,21 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v1
15-
with:
16-
python-version: 3.8
17-
- name: create release
18-
id: create_release
19-
uses: actions/create-release@v1
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
15+
- uses: actions/setup-python@v4
2216
with:
23-
tag_name: ${{ github.ref }}
24-
release_name: Release ${{ github.ref }}
25-
draft: false
26-
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}
17+
python-version: "3.x"
18+
2719
- name: sdist
2820
run: python3 setup.py sdist
21+
2922
- name: publish
3023
uses: pypa/gh-action-pypi-publish@master
3124
with:

0 commit comments

Comments
 (0)