Skip to content

Commit 64378f7

Browse files
committed
Create upm.yaml
1 parent 7a25656 commit 64378f7

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 -ProjectRoot: ${{ github.workspace }} -OutputDirectory: ${{ github.workspace }}/build/upm/output -PrereleaseTag: dev -Revision: $(Get-Date -Format "yyMMddHHmmss") -BuildNumber: ${{ github.run_number }}
21+
shell: pwsh
22+
23+
- name: Pack preview UPM packages
24+
if: github.event_name == 'push'
25+
run: |
26+
${{ github.workspace }}/Pipelines/Scripts/pack-upm.ps1 -ProjectRoot: ${{ github.workspace }} -OutputDirectory: ${{ github.workspace }}/build/upm/output -PrereleaseTag: pre -Revision: $(Get-Date -Format "yyMMddHHmmss") -BuildNumber: ${{ github.run_number }}
27+
shell: pwsh
28+
29+
- uses: actions/upload-artifact@v4
30+
if: github.event_name == 'pull_request'
31+
with:
32+
name: packages
33+
path: ${{ github.workspace }}/build/upm/output
34+
retention-days: 1
35+
36+
37+
- uses: actions/upload-artifact@v4
38+
if: github.event_name == 'push'
39+
with:
40+
name: packages
41+
path: ${{ github.workspace }}/build/upm/output
42+
retention-days: 15

0 commit comments

Comments
 (0)