mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 15:34:34 +00:00
Merge branch 'main' into 3dSkinRenderer
This commit is contained in:
51
.github/workflows/CI.yml
vendored
51
.github/workflows/CI.yml
vendored
@@ -1,27 +1,44 @@
|
||||
name: .NET
|
||||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
env:
|
||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
||||
nuget-cache-key: nuget-package-cache
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Checkout submodules
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
||||
- name: Setup NuGet
|
||||
uses: NuGet/setup-nuget@v1.0.6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
run: nuget restore PCK_Studio.sln
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
|
||||
- name: Build Solution
|
||||
run: msbuild PCK_Studio.sln
|
||||
- name: Setup NuGet
|
||||
uses: NuGet/setup-nuget@v2
|
||||
|
||||
- name: Restore NuGet Packages
|
||||
id: nuget-packages-restore
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.NUGET_PACKAGES }}
|
||||
key: ${{ runner.os }}-${{ env.nuget-cache-key }}
|
||||
|
||||
- name: Get NuGet Packages
|
||||
run: nuget restore PCK_Studio.sln
|
||||
|
||||
- name: Cache NuGet Packages
|
||||
id: nuget-packages-save
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ${{ env.NUGET_PACKAGES }}
|
||||
key: ${{ steps.nuget-packages-restore.outputs.cache-primary-key }}
|
||||
|
||||
- name: Build Solution
|
||||
run: msbuild PCK_Studio.sln
|
||||
|
||||
55
.github/workflows/release.yml
vendored
Normal file
55
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Create release
|
||||
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: v*.*
|
||||
|
||||
env:
|
||||
RELEASE_NAME: PCK-Studio
|
||||
|
||||
jobs:
|
||||
on-main-branch-check:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
on_main: ${{ steps.contains_tag.outputs.retval }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: rickstaa/action-contains-tag@v1
|
||||
id: contains_tag
|
||||
with:
|
||||
reference: "main"
|
||||
tag: "${{ github.ref }}"
|
||||
CreateRelease:
|
||||
runs-on: windows-latest
|
||||
needs: on-main-branch-check
|
||||
if: ${{ needs.on-main-branch-check.outputs.on_main == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
|
||||
- name: Setup NuGet
|
||||
uses: NuGet/setup-nuget@v2
|
||||
|
||||
- name: Get NuGet Packages
|
||||
run: nuget restore PCK_Studio.sln
|
||||
|
||||
- name: Build solution
|
||||
run: "msbuild PCK_Studio.sln -p:Configuration=Release"
|
||||
|
||||
- name: Package binary
|
||||
run: Compress-Archive -Path ${{ github.workspace }}\PCK-Studio\bin\Release\ -Destination ${{ env.RELEASE_NAME }}.zip
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: ${{ env.RELEASE_NAME }}.zip
|
||||
|
||||
Reference in New Issue
Block a user