name: Windows on: push: branches: [ main ] tags: 'v*.*.*' pull_request: branches: [ main ] workflow_dispatch: jobs: windows: runs-on: windows-latest steps: - uses: actions/checkout@v2 - name: Setup msbuild uses: microsoft/setup-msbuild@v1 - name: Windows build run: msbuild Yuescript.sln /p:Configuration=release /p:Platform=x86 - name: pack if: startsWith(github.ref, 'refs/tags/') run: (cd bin\windows\Release && 7z a ..\..\..\yue-windows-x86.7z yue.exe) - name: release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: files: | yue-windows-x86.7z env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}