Skip to content

Commit

Permalink
test new release script
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Aug 19, 2024
1 parent b70bb72 commit 2d2eb4a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ jobs:
run: |
sudo systemctl stop portfolio
sudo find /srv/portfolio/ -mindepth 1 ! -regex '^/srv/portfolio/media.*' ! -name '.git' ! -name '.env' ! -name 'log' ! -name 'tmp' -exec rm -rf {} +
sudo find /srv/portfolio/ -mindepth 1 \
! -path '/srv/portfolio/media*' \
! -path '/srv/portfolio/node_modules*' \
! -name '/srv/portfolio/.git*' \
! -name '.env' \
! -name 'log' \
! -name 'tmp' -exec rm -rf {} +
sudo rsync -av /home/gh-runner/actions-runner/_work/portfolio/portfolio/ /srv/portfolio/
sudo rsync -av --exclude 'node_modules' --exclude 'media' --exclude '.env' --exclude '.git' --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 2d2eb4a

Please sign in to comment.