Update github actions typo #5
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 | |
run: | | |
npm version ${ { steps.get_tag_version.outputs.version }#app-} | |
working-directory: ./nt-app | |
- run: yarn install | |
- run: yarn workspace nt-app electron:build --publish never | |
- 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 ${{ steps.get_tag_version.outputs.version }}.exe" ./build/Noita-Together-Setup-${{ steps.get_tag_version.outputs.version }}.exe | |
cp "./nt-app/dist_electron/Noita Together Setup ${{ steps.get_tag_version.outputs.version }}.exe.blockmap" ./build/Noita-Together-Setup-${{ steps.get_tag_version.outputs.version }}.exe.blockmap | |
- 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 |