-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.05 KB
/
cd.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: CD
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
branches:
- main
jobs:
nsis:
name: Create Windows installer
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: makensis.exe /V4 vstt-windows-installer.nsi
- name: Upload installer to tagged release
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: vstt-windows-installer.exe
tag: ${{ github.ref }}
overwrite: true
file_glob: true
pypi:
name: Create PyPI release
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install --upgrade build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.event.ref, 'refs/tags/')