Skip to content

Commit

Permalink
Actions: update installer build
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
  • Loading branch information
derrickstolee committed Oct 21, 2020
1 parent 5dfc803 commit d2c5570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ jobs:
- name: Install dependencies
run: dotnet restore --force

- name: Compute Scalar Version
- name: Build Linux packages
run: |
BRANCH=$(git branch --show-current)
if [ "${BRANCH:0:9}" = "releases/" ]; then
SCALARVERSION="${BRANCH:9}".0
else
SCALARVERSION=0.3.132.0
fi
export SCALARVERSION
- name: Build Linux packages
run: dotnet publish -c Release -p:ScalarVersion=$SCALARVERSION 'Scalar.Packaging.Linux/Scalar.Packaging.Linux.csproj'
echo $SCALARVERSION
dotnet publish -c Release -p:ScalarVersion=$SCALARVERSION 'Scalar.Packaging.Linux/Scalar.Packaging.Linux.csproj'
# Because the actions/upload-artifact action does not allow you to specify
# relative file paths we must first use a shell script to copy the
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Scalar

on:
push:
branches: [ main ]
branches: [ main, releases/* ]
pull_request:
branches: [ main ]
branches: [ main, releases/* ]

jobs:
validate_scalar:
Expand Down

0 comments on commit d2c5570

Please sign in to comment.