Skip to content

Commit

Permalink
fix: Move installer job to msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
darcywong00 committed Sep 8, 2021
1 parent a6728b8 commit 0933fc4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 54 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/installer.yml

This file was deleted.

57 changes: 54 additions & 3 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Build and Run Tests
name: Build and Run Tests. Compile and Upload Installer for Releases

on: [push]
on:
workflow_dispatch:
pull_request:
branches:
- master
release:
types:
# Doesn't trigger for draft releases
- published

env:
# Path to the solution file relative to the root of the project.
Expand Down Expand Up @@ -41,4 +49,47 @@ jobs:
# This currently fails on github actions due to requiring the Speech Analyzer program to load up for scripting and testing
#- name: Run Integration Tests
# working-directory: .\Release
# run: vstest.console.exe SAScriptingTest.dll
# run: vstest.console.exe SAScriptingTest.dll

- name: Upload Release/ for installer job
if: github.event_name == 'release'
uses: actions/upload-artifact@v2
with:
name: Release
path: Release/
retention-days: 3

installer:
name: Compile installer and upload asset to release
if: github.event_name == 'release'
needs: build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: Download Release/
uses: actions/download-artifact@v2
with:
name: Release
path: Release/

# Copy iso639.txt to DistFiles
- name: Copy iso639.txt file
run: copy DistFiles/iso639.txt Release/

# Create Installer exe
- name: Run InnoSetup
working-directory: Install/
run: iscc SpeechAnalyzer.iss

- name: Upload the Artifact
uses: actions/upload-artifact@v2
with:
name: SpeechAnalyzerInstaller
path: Install/Output/

# Upload installer to release tag which triggered this build
- uses: softprops/action-gh-release@v1
with:
files: Install/Output/SpeechAnalyzer.exe
tag_name: ${{ github.event.release.tag_name }}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SA - 3.1.1.2 9/8/2021
- Add shortcut keys for Ctrl-Down and Ctrl-Up to select next/previous graph.
- Consolidate CHANGELOG.md and 'Release Notes.txt'
- Developer Changes:
- Generate iso639.txt with GitHub action
- Compile installer with GitHub action

# SA - 3.1.1.1 8/16/2021
- Updated language list
Expand Down

0 comments on commit 0933fc4

Please sign in to comment.