Skip to content

chore: disable general config and auto update #3

chore: disable general config and auto update

chore: disable general config and auto update #3

name: Build Windows x64
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
runtime: [ 'win-x64' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore -r ${{ matrix.runtime }} --locked-mode
- name: Publish
run: dotnet publish -r ${{ matrix.runtime }} -c Release -o ./publish ./src/TMSpeech/TMSpeech.csproj
- name: Archive
uses: actions/upload-artifact@v4
with:
name: TMSpeech.${{ matrix.runtime }}
path: publish/
# when tag is pushed and starts with 'v', create a release using the artifacts
release:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: TMSpeech.win-x64
path: app
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: app/**
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}