diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index dc577c2..76a34a6 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -21,12 +21,22 @@ jobs: with: node-version: '20' + - name: Update deps, install them (to change package-lock.json) and commit + run: | + apt-get update + apt-get install -y jq + - name: Prepare, Check, Lint and Format run: | npm install + touch .env + echo "HOST=0.0.0.0" >> .env + echo "ORIGIN=https://dl.emersa.it" >> .env + echo "YTDLP_PATH=./yt-dlp" >> .env + echo "PUBLIC_VERSION=$(cat package.json | jq .version)" npm run build - cp .env.example build/.env cp package* build/ + cp .env build/ mkdir releases tar czvf releases/build.tar.gz build/