name: release Windows on: workflow_call: inputs: release_tag: required: false type: string push: branches: - master env: OutputArch: "windows-64" OutputArchArm: "windows-arm64" OutputPath64: "${{ github.workspace }}/v2rayN/Release/windows-x64" OutputPathArm64: "${{ github.workspace }}/v2rayN/Release/windows-arm64" jobs: build: strategy: matrix: arch: [ x64, arm64 ] uses: ./.github/workflows/build.yml with: target: windows arch: ${{ matrix.arch }} release-zip: runs-on: ubuntu-latest needs: build if: inputs.release_tag != '' steps: - name: Checkout uses: actions/checkout@v6.0.2 - name: Restore build artifacts x64 uses: actions/download-artifact@v8 with: name: v2rayN-windows-x64 path: ${{ github.workspace }}/v2rayN/Release - name: Restore build artifacts arm64 uses: actions/download-artifact@v8 with: name: v2rayN-windows-arm64 path: ${{ github.workspace }}/v2rayN/Release - name: Package release zip archive run: | chmod 755 package-release-zip.sh ./package-release-zip.sh $OutputArch $OutputPath64 ./package-release-zip.sh $OutputArchArm $OutputPathArm64 - name: Upload zip archive to release uses: svenstaro/upload-release-action@v2 with: file: ${{ github.workspace }}/v2rayN*.zip tag: ${{ github.event.inputs.release_tag }} file_glob: true prerelease: true