-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 885 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release a version
on:
release:
types:
- published
jobs:
build:
name: Build sdist/wheel
uses: ./.github/workflows/build.yml
with:
artifact-name: easynetwork-dist
release:
needs: build
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
name: Distribute packages
steps:
- name: Retrieve packages
uses: actions/download-artifact@v4
with:
name: easynetwork-dist
path: dist
- name: Publish to PyPI
uses: pypa/[email protected]
build-failure:
needs: build
if: failure()
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Delete release
run: gh release delete ${{ github.ref_name }} --yes --cleanup-tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}