Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/upm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: UPM Pack

on:
push:
branches:
- main
- 'feature/*'
pull_request:

jobs:
pack:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Pack dev UPM packages
if: github.event_name == 'pull_request'
run: |
${{ github.workspace }}/Pipelines/Scripts/pack-upm.ps1 -ProjectRoot: ${{ github.workspace }} -OutputDirectory: ${{ github.workspace }}/build/upm/output -PrereleaseTag: dev -Revision: ${{ github.run_number }} -BuildNumber: ${{ github.run_number }}
shell: pwsh

- name: Pack preview UPM packages
if: github.event_name == 'push'
run: |
${{ github.workspace }}/Pipelines/Scripts/pack-upm.ps1 -ProjectRoot: ${{ github.workspace }} -OutputDirectory: ${{ github.workspace }}/build/upm/output -PrereleaseTag: pre -Revision: ${{ github.run_number }} -BuildNumber: ${{ github.run_number }}
shell: pwsh

- uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: packages
path: ${{ github.workspace }}/build/upm/output
retention-days: 1

- uses: actions/upload-artifact@v4
if: github.event_name == 'push'
with:
name: packages
path: ${{ github.workspace }}/build/upm/output
retention-days: 15