Skip to content

Commit 74bbd89

Browse files
committed
add release workflow
1 parent 526f9e8 commit 74bbd89

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/create_release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Release
2+
run-name: creating release
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
create-release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.11"
15+
- name: Install pypa/build
16+
run: python3 -m pip install build --user
17+
18+
- name: Build a binary wheel and a source tarball
19+
run: python3 -m build
20+
21+
- name: Make release
22+
env:
23+
GITHUB_TOKEN: ${{ github.token }}
24+
run: |
25+
REF_NAME="${{ github.ref_name }}-$(date +"%Y-%m-%d")"
26+
gh release create "$REF_NAME" --repo '${{ github.repository }}' --notes ""
27+
gh release upload "$REF_NAME" dist/** --repo '${{ github.repository }}'

0 commit comments

Comments
 (0)