-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathshapeengine-release-attacher.yml
More file actions
77 lines (63 loc) · 2.02 KB
/
shapeengine-release-attacher.yml
File metadata and controls
77 lines (63 loc) · 2.02 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Build/Attach Examples & ResourcePacker Artifacts to ShapeEngine Releases
on:
release:
types: [published]
permissions:
contents: write
jobs:
build:
env:
dotnet-version: "8.0"
strategy:
matrix:
include:
- os: windows-latest
runtime: win-x64
- os: ubuntu-latest
runtime: linux-x64
- os: macos-latest
runtime: osx-arm64
- os: macos-15-intel
runtime: osx-x64
runs-on: ${{ matrix.os }}
name: Build (${{ matrix.runtime }})
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Publish Examples
run: dotnet publish --sc -r ${{ matrix.runtime }} ./Examples/Examples.csproj -c Release
- name: Publish ResourcePacker
run: dotnet publish --sc -r ${{ matrix.runtime }} ./ResourcePacker/ResourcePacker.csproj -c Release
- name: Upload Examples Artifact
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ matrix.runtime }}-Examples
path: ./Examples/bin/Release/net8.0/${{ matrix.runtime }}/publish
- name: Upload ResourcePacker Artifact
uses: actions/upload-artifact@v4.5.0
with:
name: ${{ matrix.runtime }}-ResourcePacker
path: ./ResourcePacker/bin/Release/net8.0/${{ matrix.runtime }}/publish
attach:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all build artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
- name: List artifacts
run: ls -R ./artifacts
- name: Upload artifacts to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: ./artifacts/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clean up artifacts
run: rm -rf ./artifacts