Skip to content

Commit

Permalink
update node version workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AkatGabrielGoncalves committed Oct 26, 2024
1 parent 8a788d0 commit 8a1139f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

- name: Install dependencies
run: yarn install
Expand All @@ -39,8 +39,8 @@ jobs:
source: "*"
target: "~/${{ env.FOLDER_NAME }}"
rm: true
# It needs to use root to copy this file

# It needs to use root to copy this file
# - name: Copy service config file to systemd
# uses: appleboy/scp-action@master
# with:
Expand All @@ -50,23 +50,23 @@ jobs:
# source: "felicity.service"
# target: "/etc/systemd/system/"
# overwrite: true

- name: Copy .env to app folder
uses: appleboy/ssh-action@master
with:
host: ${{ env.SERVER_HOST }}
username: ${{ env.SERVER_USERNAME }}
key: ${{ env.SERVER_KEY }}
script: cp ~/.env ~/${{ env.FOLDER_NAME }}/.env

- name: Reload systemd files
uses: appleboy/ssh-action@master
with:
host: ${{ env.SERVER_HOST }}
username: ${{ env.SERVER_USERNAME }}
key: ${{ env.SERVER_KEY }}
script: sudo systemctl daemon-reload

- name: Restart app
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 8a1139f

Please sign in to comment.