Skip to content

Commit 42fc081

Browse files
committed
macOS release: package payload
Add step three of the macOS release process to package the payload and upload the pkg artifact.
1 parent 69769f5 commit 42fc081

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,43 @@ jobs:
123123
name: osx-payload-sign
124124
path: |
125125
signed
126+
127+
osx-pack:
128+
name: Package macOS payload
129+
runs-on: macos-latest
130+
needs: osx-payload-sign
131+
steps:
132+
- name: Check out repository
133+
uses: actions/checkout@v3
134+
with:
135+
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.
136+
137+
- name: Set up dotnet
138+
uses: actions/setup-dotnet@v2
139+
with:
140+
dotnet-version: 6.0.201
141+
142+
# Install Nerdbank.GitVersioning
143+
- uses: dotnet/nbgv@master
144+
with:
145+
setCommonVars: true
146+
147+
- name: Download signed payload
148+
uses: actions/download-artifact@v3
149+
with:
150+
name: osx-payload-sign
151+
152+
- name: Create component package
153+
run: |
154+
src/osx/Installer.Mac/pack.sh --payload=payload --version=$GitBuildVersionSimple --output=components/com.microsoft.gitcredentialmanager.component.pkg
155+
156+
- name: Create product archive
157+
run: |
158+
src/osx/Installer.Mac/dist.sh --package-path=components --version=$GitBuildVersionSimple --output=pkg/gcm-osx-x64-$GitBuildVersionSimple.pkg || exit 1
159+
160+
- name: Upload package
161+
uses: actions/upload-artifact@v3
162+
with:
163+
name: tmp.osx-pack
164+
path: |
165+
pkg

0 commit comments

Comments
 (0)