Skip to content

Commit e468610

Browse files
committed
Create upm.yaml
Update upm.yaml
1 parent d56fbb3 commit e468610

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/upm.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: UPM Pack
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'feature/*'
8+
pull_request:
9+
10+
jobs:
11+
pack:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Pack dev UPM packages
18+
if: github.event_name == 'pull_request'
19+
run: |
20+
${{ github.workspace }}/Pipelines/Scripts/pack-upm.ps1
21+
-ProjectRoot: ${{ github.workspace }}/MixedRealityToolkit-Unity
22+
-OutputDirectory: ${{ github.workspace }}/build/upm/output
23+
-PrereleaseTag: dev
24+
-Revision: $(Get-Date -Format "yyMMddHHmmss")
25+
-BuildNumber: ${{ github.run_number }}
26+
shell: pwsh
27+
28+
- name: Pack preview UPM packages
29+
if: github.event_name == 'push'
30+
run: |
31+
${{ github.workspace }}/Pipelines/Scripts/pack-upm.ps1
32+
-ProjectRoot: ${{ github.workspace }}/MixedRealityToolkit-Unity
33+
-OutputDirectory: ${{ github.workspace }}/build/upm/output
34+
-PrereleaseTag: pre
35+
-Revision: $(Get-Date -Format "yyMMddHHmmss")
36+
-BuildNumber: ${{ github.run_number }}
37+
shell: pwsh
38+
39+
- uses: actions/upload-artifact@v4
40+
with:
41+
path: ${{ github.workspace }}/build/upm/output
42+
retention-days: 1

0 commit comments

Comments
 (0)