Fix GitHub workflow #29
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
# SPDX-License-Identifier: GPL-3.0-or-later | |
# | |
# This file is part of Eruption. | |
# | |
# Eruption is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# Eruption is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with Eruption. If not, see <http://www.gnu.org/licenses/>. | |
# | |
# Copyright (c) 2019-2023, The Eruption Development Team | |
on: | |
push: | |
branches: | |
- unified-canvas | |
tags: | |
- "v*.*.*" | |
name: Build Installer for Microsoft Windows | |
jobs: | |
windows_installer: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Setup Base System | |
run: "sudo apt-get update -y -qq; sudo apt-get install --assume-yes nsis" | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Install cross Build Tool | |
run: "cargo install cross" | |
- name: Run make windows-installer | |
run: "make windows-installer" | |
- name: Publish Installer Binary | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
prerelease: true | |
files: "target/Eruption.exe" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |