Skip to content

Commit 98fa248

Browse files
authored
Update ci.yml
1 parent af4a28d commit 98fa248

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ name: CI
44
on: [push, pull_request, workflow_dispatch]
55

66
permissions:
7-
contents: read
7+
contents: write
88

99
jobs:
10-
distros:
10+
build:
1111
name: "${{ matrix.os }} with Python ${{ matrix.python-version }}"
1212
runs-on: ${{ matrix.os }}
1313
strategy:
@@ -39,7 +39,20 @@ jobs:
3939
- name: "build python-ldap ${{ matrix.python-version }}"
4040
run: "python -m build"
4141
- name: Upload a Build Artifact
42-
uses: actions/upload-artifact@v3.1.2
42+
uses: actions/upload-artifact@v3
4343
with:
4444
# A file, directory or wildcard pattern that describes what to upload
45-
path: dist/*
45+
path: dist/*.whl
46+
release:
47+
name: "Release"
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Download Artifacts
51+
# will download and upack all files from the default artifact named 'artifact'
52+
uses: actions/download-artifact@v3
53+
- name: GH Release
54+
uses: softprops/action-gh-release@v0.1
55+
with:
56+
name: latest
57+
files: |
58+
*.whl

0 commit comments

Comments
 (0)