Update .gitea/workflows/deploy.yml
Some checks failed
Deploy (stellaamor) / deploy (push) Failing after 4s
Some checks failed
Deploy (stellaamor) / deploy (push) Failing after 4s
This commit is contained in:
@@ -45,10 +45,21 @@ jobs:
|
||||
set -euo pipefail
|
||||
REL="$(date -u +%Y%m%d-%H%M%SZ)-${{ github.sha }}"
|
||||
echo "REL=$REL" >> $GITHUB_ENV
|
||||
mkdir -p release
|
||||
|
||||
UPLOADS="${{ env.UPLOADS_DIR }}"
|
||||
tar --exclude-vcs --exclude='./node_modules' --exclude="./${UPLOADS}" \
|
||||
-czf "release/${REL}.tar.gz" .
|
||||
OUT="/tmp/${REL}.tar.gz"
|
||||
|
||||
# create tar OUTSIDE the repo dir, then move it into ./release
|
||||
tar -czf "$OUT" \
|
||||
--exclude-vcs \
|
||||
--exclude='./node_modules' \
|
||||
--exclude="./${UPLOADS}" \
|
||||
--exclude='./release' \
|
||||
.
|
||||
|
||||
mkdir -p release
|
||||
mv "$OUT" "release/${REL}.tar.gz"
|
||||
|
||||
|
||||
- name: Write SSH key
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user