diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 9602add..a1c6c78 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -16,5 +16,8 @@ jobs: git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}/${REPO}.git . git fetch git checkout ${{ github.head_ref }} - - name: list - run: ls + - name: prepare deploy + run: sh ./deploy/prepare-deploy.sh + + + diff --git a/deploy/prepare-deploy.sh b/deploy/prepare-deploy.sh index c0ad1ed..53f4e46 100644 --- a/deploy/prepare-deploy.sh +++ b/deploy/prepare-deploy.sh @@ -17,14 +17,6 @@ done rm ./bin/phpunit APP_ENV=prod composer install --no-dev -a -mkdir -p ~/.ssh/ -# Print the SSH key, replacing newline characters with actual new lines -echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa -# Set appropriate permissions for the SSH key -chmod 600 ~/.ssh/id_rsa -# Add the remote host's key to the known_hosts file to avoid authenticity confirmation -ssh-keyscan -H $HOST >> ~/.ssh/known_hosts -# SCP files to the remote host -rsync -avz --delete public/ ${USERNAME}@${HOST}:${TARGETDIR} + diff --git a/public/static/img/slice-of-pizza.png b/public/static/img/slice-of-pizza.png new file mode 100644 index 0000000..300e7e7 Binary files /dev/null and b/public/static/img/slice-of-pizza.png differ diff --git a/templates/base.html.twig b/templates/base.html.twig index 93a64b7..1918768 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -3,7 +3,7 @@