Skip to content

Commit

Permalink
see if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Aug 18, 2024
1 parent 40475f4 commit ef32976
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ jobs:
- name: Publish Executable
run: |
sudo systemctl stop portfolio
sudo find /srv/portfolio/ -mindepth 1 ! -name 'media' ! -name '.env' -exec rm -rf {} +
sudo rsync -av --exclude 'media' --exclude '.env' /home/gh-runner/actions-runner/_work/portfolio/portfolio/ /srv/portfolio/
# Corrected find command with additional exclusions
sudo find /srv/portfolio/ -mindepth 1 ! -name 'media' ! -name '.env' ! -name 'log' ! -name 'tmp' -exec rm -rf {} +
# Use rsync to copy files, excluding media, .env, log, and tmp directories
sudo rsync -av --exclude 'media' --exclude '.env' --exclude 'log' --exclude 'tmp' /home/gh-runner/actions-runner/_work/portfolio/portfolio/ /srv/portfolio/
cd /srv/portfolio
pnpm install
sudo systemctl start portfolio

0 comments on commit ef32976

Please sign in to comment.