Add test CI action for windows builds #2
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 | ||
env: | ||
buildVersion: ${{ steps.get_tag_version.outputs.version }} | ||
Check failure on line 12 in .github/workflows/deploy-windows.yml GitHub Actions / Deploy WindowsInvalid workflow file
|
||
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 | ||
run: | | ||
npm version ${ { steps.get_tag_version.outputs.version }#app-} | ||
working-directory: ./nt-app | ||
- run: yarn install | ||
- run: yarn workspace buildClient | ||
- run: ls ./nt-app/dist_electron/ | ||
- run: | | ||
cp "./nt-app/dist_electron/latest.yml" ./build/latest.yml | ||
cp "./nt-app/dist_electron/Noita-Together-Setup-$(buildVersion).exe" ./build/ | ||
cp "./nt-app/dist_electron/Noita-Together-Setup-$(buildVersion).exe.blockmap" ./build/ | ||
- 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 | ||
- name: Output checksums | ||
run: | | ||
certutil -hashfile "./nt-app/dist_electron/Noita-Together-Setup-$(buildVersion).exe" | ||
certutil -hashfile "./nt-app/dist_electron/Noita-Together-Setup-$(buildVersion).exe.blockmap" |