Skip to content

Commit

Permalink
ci: fix variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed May 15, 2024
1 parent 7102243 commit 2845541
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/deploy-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -e
# Deploy releases files to website

# params
REF=$(echo $GITHUB_REF | cut -d'/' -f 3)
VERSION=$(echo $GITHUB_REF | cut -d'/' -f 3)
TARGET_REPO="Cecilapp/website"
TARGET_BRANCH="master"
TARGET_RELEASE_DIR="download/$REF"
TARGET_RELEASE_DIR="download/$VERSION"
TARGET_DIST_DIR="static"
DIST_FILE="cecil.phar"
DIST_FILE_SHA1="cecil.phar.sha1"
Expand Down Expand Up @@ -42,11 +42,11 @@ cd ../..

# create VERSION file
[ -e VERSION ] && rm -- VERSION
echo $REF > VERSION
echo $VERSION > VERSION

# create Scoop manifest
rm -f SCOOP_FILE_JSON
cat <<EOT >> SCOOP_FILE_JSON
rm -f $SCOOP_FILE_JSON
cat <<EOT >> $SCOOP_FILE_JSON
{
"description": "Your content driven static site generator.",
"homepage": "https://cecil.app",
Expand All @@ -55,8 +55,8 @@ cat <<EOT >> SCOOP_FILE_JSON
"suggest": {
"PHP": ["php"]
},
"url": "https://cecil.app/download/$REF/cecil.phar",
"version": "$REF",
"url": "https://cecil.app/download/$VERSION/cecil.phar",
"version": "$VERSION",
"hash": "sha1:$sha1hash",
"checkver": {
"url": "https://cecil.app/VERSION",
Expand Down

0 comments on commit 2845541

Please sign in to comment.