Add test CI action for windows builds #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Windows | |
on: | |
push: | |
tags: | |
- 'app-*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn install | |
- name: Get version from tag | |
id: get_tag_version | |
run: echo ::set-output name=version::${{ github.ref }} | |
- name: Set package.json version | |
env: | |
buildVersion: ${{ steps.get_tag_version.outputs.version }} | |
run: | | |
npm version $env:buildVersion | |
yarn config set enableImmutableInstalls false | |
working-directory: ./nt-app | |
- run: yarn install | |
- run: yarn workspace nt-app electron:build --publish never | |
- run: ls ./nt-app/dist_electron/ | |
- env: | |
buildVersion: ${{ steps.get_tag_version.outputs.version }} | |
run: | | |
mkdir ./build/ | |
cp "./nt-app/dist_electron/latest.yml" ./build/latest.yml | |
cp "./nt-app/dist_electron/Noita-Together-Setup-*" ./build/ | |
- name: Output checksums | |
run: | | |
ls ./build/ | |
$files = Get-ChildItem ./build | |
foreach ($f in $files){ | |
certutil -hashfile ./build/$f | |
} | |
- env: | |
buildVersion: ${{ steps.get_tag_version.outputs.version }} | |
name: Upload files to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./build/ | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |