Skip to content

build-nightly.yml aktualisieren #48

build-nightly.yml aktualisieren

build-nightly.yml aktualisieren #48

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: windows-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: windows-latest
steps:
- name: Download artifact
run: |
Invoke-WebRequest -Headers @{'Authorization' = 'Bearer ${GITHUB_TOKEN}' -Uri ${{ matrix.build.url }} -OutFile '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