chore: fix name
This commit is contained in:
parent
7fd4f6a615
commit
6ac10a9ee7
2 changed files with 15 additions and 8 deletions
13
.github/workflows/linux.yml
vendored
13
.github/workflows/linux.yml
vendored
|
@ -75,6 +75,12 @@ jobs:
|
||||||
# with:
|
# with:
|
||||||
# node-version: "16.x"
|
# node-version: "16.x"
|
||||||
|
|
||||||
|
- name: configure GPG key
|
||||||
|
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/dumbserve'
|
||||||
|
run: echo -n "$RELEASE_BOT_GPG_SIGNING_KEY" | gpg --import
|
||||||
|
env:
|
||||||
|
RELEASE_BOT_GPG_SIGNING_KEY: ${{ secrets.RELEASE_BOT_GPG_SIGNING_KEY }}
|
||||||
|
|
||||||
- name: Install ${{ matrix.version }}
|
- name: Install ${{ matrix.version }}
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
|
@ -87,6 +93,7 @@ jobs:
|
||||||
# env:
|
# env:
|
||||||
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
# POSTGRES_DATABASE_URL: "${{ env.POSTGRES_DATABASE_URL }}"
|
||||||
# MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
# MARIA_DATABASE_URL: "${{ env.MARIA_DATABASE_URL }}"
|
||||||
|
#
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: make
|
run: make
|
||||||
|
@ -117,9 +124,9 @@ jobs:
|
||||||
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/dumbserve'
|
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/dumbserve'
|
||||||
run: make docker-publish
|
run: make docker-publish
|
||||||
|
|
||||||
# - name: publish bins
|
- name: publish bins
|
||||||
# if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/dumbserve'
|
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/dumbserve'
|
||||||
# run: ./scripts/publish.sh master latest
|
run: ./scripts/publish.sh master latest
|
||||||
|
|
||||||
- name: generate documentation
|
- name: generate documentation
|
||||||
if: matrix.version == 'stable' && (github.repository == 'realaravinth/dumbserve')
|
if: matrix.version == 'stable' && (github.repository == 'realaravinth/dumbserve')
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
|
|
||||||
set -xEeuo pipefail
|
set -xEeuo pipefail
|
||||||
|
|
||||||
DUMMYSERVE_USERNAME=$4
|
DUMBSERVE_USERNAME=$4
|
||||||
DUMMYSERVE_PASSWORD=$5
|
DUMBSERVE_PASSWORD=$5
|
||||||
DUMMYSERVE_HOST="https://$DUMMYSERVE_USERNAME:$DUMMYSERVE_PASSWORD@dl.batsense.net"
|
DUMBSERVE_HOST="https://$DUMBSERVE_USERNAME:$DUMBSERVE_PASSWORD@dl.batsense.net"
|
||||||
|
|
||||||
NAME=dummyserve
|
NAME=dummyserve
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ sign() {
|
||||||
}
|
}
|
||||||
|
|
||||||
delete_dir() {
|
delete_dir() {
|
||||||
curl --location --request DELETE "$DUMMYSERVE_HOST/api/v1/files/delete" \
|
curl --location --request DELETE "$DUMBSERVE_HOST/api/v1/files/delete" \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--data-raw "{
|
--data-raw "{
|
||||||
\"path\": \"$1\"
|
\"path\": \"$1\"
|
||||||
|
@ -86,7 +86,7 @@ upload_dist() {
|
||||||
do
|
do
|
||||||
curl -v \
|
curl -v \
|
||||||
-F upload=@$file \
|
-F upload=@$file \
|
||||||
"$DUMMYSERVE_HOST/api/v1/files/upload?path=$1/"
|
"$DUMBSERVE_HOST/api/v1/files/upload?path=$1/"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue