diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d33cfda --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish + +on: + push: + tags: + - '*' + +jobs: + build: + 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: ${{ steps.create_release.outputs.upload_url }} + asset_path: Installer\bin\x64\Release\en-US\AOVpnManager.msi + asset_name: AOVpnManager-${{ matrix.configuration }}.msi