aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml10
-rwxr-xr-xbin/publish4
2 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f7307efc..6b85d309 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,8 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: Build
- run: ./bin/build
+ - name: Web
+ run: ./bin/build --web-only
+ - name: Dotnet
+ run: ./bin/build --dotnet-only
- name: Upload Static Web Content
uses: actions/upload-artifact@v2
with:
@@ -34,7 +36,7 @@ jobs:
name: web
path: src/slskd/wwwroot
- name: Publish ${{ matrix.runtime }}
- run: bin/publish --no-prebuild --runtime ${{ matrix.runtime }} --version-suffix $(echo $GITHUB_SHA | cut -c1-8)
+ run: bin/publish --no-prebuild --runtime ${{ matrix.runtime }} --version-suffix $(echo $GITHUB_SHA | cut -c1-7)
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
@@ -49,4 +51,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: docker build -t slskd/slskd:$(echo $GITHUB_SHA | cut -c1-8) . \ No newline at end of file
+ run: docker build -t slskd/slskd:$(echo $GITHUB_SHA | cut -c1-7) . \ No newline at end of file
diff --git a/bin/publish b/bin/publish
index 106ed392..57623a7a 100755
--- a/bin/publish
+++ b/bin/publish
@@ -9,9 +9,9 @@ while test $# -gt 0; do
-h|--help)
echo 'options:'
echo '-h, --help show help'
- echo '--no-prebuild skip build'
+ echo '--no-prebuild skip build and test'
+ echo '--runtime a valid RID (https://docs.microsoft.com/en-us/dotnet/core/rid-catalog)'
echo '--version-suffix version suffix for the binary. defaults to current git SHA'
- echo '--runtine a valid RID (https://docs.microsoft.com/en-us/dotnet/core/rid-catalog)'
exit 0
;;
--no-prebuild)