Skip to content

Rename dotnet.ynl to build.yml. #11

Rename dotnet.ynl to build.yml.

Rename dotnet.ynl to build.yml. #11

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
create_release:
runs-on: windows-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
build:
needs: create_release
strategy:
matrix:
architecture: [x64, x86]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: dotnet build Installer --arch ${{ matrix.architecture }} --configuration Release
- name: Upload binaries to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: .\Installer\bin\Release\en-US\AOVpnManager.msi
asset_name: AOVpnManager-${{ matrix.architecture }}.msi
asset_content_type: application/msi