aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-01-03 19:35:09 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-01-03 19:53:00 -0600
commit68c692d06a2184979dff28c3b4285f937d65ead8 (patch)
tree09feb35307546c3aaefcafb2ff3632976459fc6d /.github/workflows
parent2467855d652b46c6d50dc39c4e383f43e2c5eeb9 (diff)
downloadslskd-68c692d06a2184979dff28c3b4285f937d65ead8.tar.gz
add version sufix
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/publish.yml38
2 files changed, 2 insertions, 40 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c5115f72..57bef316 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,7 +34,7 @@ jobs:
name: web
path: src/slskd/wwwroot
- name: Publish ${{ matrix.runtime }}
- run: bin/publish --no-web-build --runtime ${{ matrix.runtime }}
+ run: bin/publish --no-build --runtime ${{ matrix.runtime }} --version-suffix $(echo $GITHUB_SHA | cut -c1-8)
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
@@ -49,4 +49,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-8) . \ No newline at end of file
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
deleted file mode 100644
index 135a9bf4..00000000
--- a/.github/workflows/publish.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-# # This is a basic workflow to help you get started with Actions
-
-# name: Publish
-
-# # Controls when the action will run.
-# on:
-# # Triggers the workflow on push or pull request events but only for the master branch
-# push:
-# branches: [ master ]
-
-# # Allows you to run this workflow manually from the Actions tab
-# workflow_dispatch:
-
-# # A workflow run is made up of one or more jobs that can run sequentially or in parallel
-# jobs:
-# web:
-# runs-on: ubuntu-latest
-# steps:
-# - uses: actions/checkout@v2
-# - name: Build Static Web Content
-# run: bin/build --web-only
-# publish:
-# runs-on: ubuntu-latest
-# needs: web
-# strategy:
-# matrix:
-# runtime: ["win-x64", "linux-x64", "linux-musl-x64", "linux-arm64", "osx-x64"]
-# steps:
-# - uses: actions/checkout@v2
-# - name: Publish ${{ matrix.runtime }}
-# run: bin/publish --runtime ${{ matrix.runtime }}
-
-# - name: Upload a Build Artifact
-# uses: actions/upload-artifact@v2
-# with:
-# name: ${{ matrix.runtime }}
-# path: dist/${{ matrix.runtime }}
-