chore: remove old script from deploy
All checks were successful
Deploy eolas-api / deploy (push) Successful in 13s

This commit is contained in:
Thomas Bishop 2025-10-09 18:55:57 +01:00
parent 6adfeb3f9a
commit 2e281eae7d

View file

@ -1,21 +1,3 @@
# name: Deploy eolas-api
# on:
# push:
# branches: [main]
# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - run: |
# echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
# chmod 600 /tmp/ssh_key
# ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'cd /var/www/eolas-api && rm -rf * .[^.]*'"
# scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r ./* ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/
# rm /tmp/ssh_key
#
#
name: Deploy eolas-api name: Deploy eolas-api
on: on:
push: push:
@ -60,10 +42,8 @@ jobs:
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT echo "new_tag=$new_tag" >> $GITHUB_OUTPUT
echo "new_version=$new_version" >> $GITHUB_OUTPUT echo "new_version=$new_version" >> $GITHUB_OUTPUT
# Save commit message for later (escape newlines)
echo "$commit_msg" > /tmp/commit_msg.txt echo "$commit_msg" > /tmp/commit_msg.txt
# Update package.json
sed -i "s/\"version\": \".*\"/\"version\": \"$new_version\"/" package.json sed -i "s/\"version\": \".*\"/\"version\": \"$new_version\"/" package.json
- name: Commit version change - name: Commit version change