Skip to content

Commit 5672a77

Browse files
committed
linux release: build and lay out
Add step one of Linux (Debian) release process to build and lay out Debian package. Additionally, drop 'core' suffix from package name and remove no-longer-needed build-installers workflow.
1 parent 5c10997 commit 5672a77

File tree

4 files changed

+41
-43
lines changed

4 files changed

+41
-43
lines changed

.github/workflows/build-installers.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,39 @@ jobs:
354354
path: |
355355
signed
356356
signed-payload
357-
src/windows/Installer.Windows/symbols
357+
src/windows/Installer.Windows/symbols
358+
359+
# ================================
360+
# Linux
361+
# ================================
362+
linux-build:
363+
name: Build Linux
364+
runs-on: ubuntu-latest
365+
steps:
366+
- uses: actions/checkout@v3
367+
with:
368+
fetch-depth: 0 # Indicate full history so Nerdbank.GitVersioning works.
369+
370+
- name: Setup .NET
371+
uses: actions/setup-dotnet@v2
372+
with:
373+
dotnet-version: 6.0.201
374+
375+
- name: Install dependencies
376+
run: dotnet restore
377+
378+
- name: Build
379+
run: dotnet build --configuration=LinuxRelease
380+
381+
- name: Lay out
382+
run: |
383+
mkdir -p linux-build/deb linux-build/tar
384+
mv out/linux/Packaging.Linux/deb/Release/*.deb linux-build/deb
385+
mv out/linux/Packaging.Linux/tar/Release/*.tar.gz linux-build/tar
386+
387+
- name: Upload artifacts
388+
uses: actions/upload-artifact@v3
389+
with:
390+
name: linux-build
391+
path: |
392+
linux-build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ To uninstall:
137137

138138
```shell
139139
git-credential-manager-core unconfigure
140-
sudo dpkg -r gcmcore
140+
sudo dpkg -r gcm
141141
```
142142

143143
#### Other distributions

src/linux/Packaging.Linux/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ SYMBOLOUT="$PROJ_OUT/payload.sym/$CONFIGURATION"
7575

7676
if [ $INSTALL_FROM_SOURCE = false ]; then
7777
TAROUT="$PROJ_OUT/tar/$CONFIGURATION"
78-
TARBALL="$TAROUT/gcmcore-linux_$ARCH.$VERSION.tar.gz"
79-
SYMTARBALL="$TAROUT/symbols-linux_$ARCH.$VERSION.tar.gz"
78+
TARBALL="$TAROUT/gcm-linux_$ARCH.$VERSION.tar.gz"
79+
SYMTARBALL="$TAROUT/gcm-linux_$ARCH.$VERSION-symbols.tar.gz"
8080

8181
DEBOUT="$PROJ_OUT/deb/$CONFIGURATION"
8282
DEBROOT="$DEBOUT/root"
83-
DEBPKG="$DEBOUT/gcmcore-linux_$ARCH.$VERSION.deb"
83+
DEBPKG="$DEBOUT/gcm-linux_$ARCH.$VERSION.deb"
8484
else
8585
INSTALL_LOCATION="/usr/local"
8686
fi
@@ -193,7 +193,7 @@ if [ $INSTALL_FROM_SOURCE = false ]; then
193193
# https://stackoverflow.com/questions/9349616/bash-eof-in-if-statement
194194
# for details
195195
cat >"$DEBROOT/DEBIAN/control" <<EOF
196-
Package: gcmcore
196+
Package: gcm
197197
Version: $VERSION
198198
Section: vcs
199199
Priority: optional

0 commit comments

Comments
 (0)