-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.03 KB
/
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
44
45
name: Release
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Github actions init
uses: actions/checkout@v4
with:
# To force fetching tags
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install build dependencies
run: pip install build
- name: Build
run: python -m build
- name: Read VERSION file
id: getversion
run: echo "version=$(cat isvirtual/VERSION.md)" >> $GITHUB_OUTPUT
- name: Changelog
run: git log $(git describe --tags --abbrev=0)..HEAD --format="%s %h" > LATEST-CHANGES.md
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.whl
dist/*.tar.gz
tag_name: v${{ steps.getversion.outputs.version }}
body_path: LATEST-CHANGES.md
token: ${{ secrets.PAT_ISVIRTUAL }}