aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/nightly.yml
blob: 00f18f532c46b2e6cc183ab894d5190e904a73e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Nightly Release

on:
  workflow_dispatch: 
  push:
    branches:
    - 'main'

jobs:
  build:
    name: Build Windows64
    runs-on: windows-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v6

    - name: Setup msbuild
      uses: microsoft/setup-msbuild@v2
    
    - name: Build
      run: MSBuild.exe MinecraftConsoles.sln /p:Configuration=Release /p:Platform="Windows64"

    - name: Zip Build
      run: 7z a -r LCEWindows64.zip ./x64/Release/*

    - name: Update release
      uses: andelf/nightly-release@main

      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: nightly
        name: Nightly Release
        files: LCEWindows64.zip