File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments