Update color of targets and center #211
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v5 | |
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/') |