Skip to content

build-nightly.yml aktualisieren #65

build-nightly.yml aktualisieren

build-nightly.yml aktualisieren #65

Workflow file for this run

name: Nightly build
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
jobs:
build-windows:
name: Build Windows
uses: ./.github/workflows/dotnet-desktop.yml
publish:
runs-on: ubuntu-latest
needs: build-windows
name: Publish release
steps:
- name: Create Release
if: ${{ github.event_name == 'push'}}
uses: ncipollo/[email protected]
with:
name: Latest Nightly build
tag: Nightly
prerelease: true
allowUpdates: true
artifacts: Vocaluxe_Nightly_x64
attach-artifacts:
name: Attach artifacts
needs: [build-windows, publish]
strategy:
matrix:
build:
- label: "Windows_x86"
url: ${{needs.build-windows.outputs.x86}}
- label: "Windows_x64"
url: ${{needs.build-windows.outputs.x64}}
runs-on: ubuntu-latest
steps:
- name: Download artifact
run: "wget --header='Authorization: token ${GITHUB_TOKEN}' ${{ matrix.build.url }} -O 'Vocaluxe_Nightly_${{ matrix.build.label}}.zip'"
- name: Attach to release
uses: softprops/action-gh-release@v2
with:
files: Vocaluxe_Nightly_${{ matrix.build.label}}.zip
tag: Nightly