diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..00f18f53 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,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 \ No newline at end of file