Skip to content

Actually build and upload installer on release. #7

Actually build and upload installer on release.

Actually build and upload installer on release. #7

Workflow file for this run

name: ACC Connector release
on: push
on:

Check failure on line 5 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 5
release:
types: [published]
permissions:
contents: write
jobs:
release:
name: Build release tag
runs-on: windows-latest
steps:
- name: Grab version
run: |
TAG=${{ github.event.release.tag_name }}
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
shell: bash
- name: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Dotnet restore
run: |
dotnet restore
- name: Build app
run: |
msbuild /property:Configuration=Release /t:publish
- name: Create installer
run: |
"%programfiles(x86)%/Inno Setup 6/iscc.exe" acc-connector.iss /DAppVer=${{ env.VERSION }}
shell: cmd
- name: Upload installer
run: |
gh release upload ${{github.event.release.tag_name}} Output/ACC-Connector-Setup-${{ env.VERSION }}.exe