Skip to content
name: Build Windows Package
on:
push:
branches:
- feature/test-windows-build
# 手動トリガーを許可
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: true
lfs: true
# Vusial Studio (MSBuild)のセットアップをする
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1
# nuget のセットアップをする
- name: Setup NuGet
uses: NuGet/setup-nuget@v1
# - name: Set up MSVC environment
# shell: cmd
# run: |
# "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
- name: Get Version
id: version
run: |
$version = Invoke-Expression -Command "Write-Output '1.0.0'"
echo "::set-output name=version::$version"
- name: Build Windows Release Package
shell: pwsh
run: |
Set-Location -Path ${{ github.workspace }}
.\Build-Windows-Release-Package.ps1 -Version ${{ steps.version.outputs.version }}
- name: Upload Package
uses: actions/upload-artifact@v2
with:
name: windows-package
path: ./path/to/zip/file.zip