fix: dumbseve credentials is 4th parameter

This commit is contained in:
Aravinth Manivannan 2022-08-16 11:36:52 +05:30
parent a6e1514a9a
commit 83035ae0e0
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 3 additions and 4 deletions

View file

@ -66,7 +66,7 @@ jobs:
- name: publish bins - name: publish bins
if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/librepages' if: (github.ref == 'refs/heads/master' || github.event_name == 'push') && github.repository == 'realaravinth/librepages'
run: ./scripts/publish.sh publish master latest $DUMBSERVE_PASSWORD run: ./scripts/bin-publish.sh publish master latest $DUMBSERVE_PASSWORD
env: env:
DUMBSERVE_PASSWORD: ${{ secrets.DUMBSERVE_PASSWORD }} DUMBSERVE_PASSWORD: ${{ secrets.DUMBSERVE_PASSWORD }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}

View file

@ -17,13 +17,12 @@
# publish.sh: grab bin from docker container, pack, sign and upload # publish.sh: grab bin from docker container, pack, sign and upload
# $2: binary version # $2: binary version
# $3: Docker img tag # $3: Docker img tag
# $4: dumbserve username # $4: dumbserve password
# $5: dumbserve password
set -xEeuo pipefail set -xEeuo pipefail
DUMBSERVE_USERNAME=librepages DUMBSERVE_USERNAME=librepages
DUMBSERVE_PASSWORD=$5 DUMBSERVE_PASSWORD=$4
DUMBSERVE_HOST="https://$DUMBSERVE_USERNAME:$DUMBSERVE_PASSWORD@dl.librepages.org" DUMBSERVE_HOST="https://$DUMBSERVE_USERNAME:$DUMBSERVE_PASSWORD@dl.librepages.org"
NAME=librebages NAME=librebages