Skip to content

Fix: add checkout.

Fix: add checkout. #18

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
permissions: write-all
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: true
prerelease: false
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
build:
needs: create_release
strategy:
matrix:
arch: [win-x64, win-x86, win-arm64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: dotnet build Installer --arch ${{ matrix.arch }} --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.arch }}.msi
asset_content_type: application/msi
- name: Upload symbols artifact
uses: actions/upload-artifact@v3
with:
name: AOVpnManager-${{ matrix.arch }}-symbols
path: .\Installer\bin\Release\en-US\AOVpnManager.wixpdb
policy_template:
needs: create_release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Compress Policy Templates
run: Compress-Archive -Path .\PolicyTemplates\* -DestinationPath .\PolicyTemplates.zip
- name: Upload Policy Templates 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: .\PolicyTemplates.zip
asset_name: PolicyTemplates.zip
asset_content_type: application/zip