Skip to content

Commit

Permalink
cleaned up release file
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Aug 19, 2024
1 parent a695d47 commit ca343c5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
run: sudo systemctl stop portfolio

- name: Steal ownership of production server directory
run: |
sudo chown -R gh-runner:gh-runner /srv/portfolio
sudo chown -R gh-runner:gh-runner /home/gh-runner/actions-runner/_work/
run: sudo chown -R gh-runner:gh-runner /srv/portfolio

- name: Copy existing node modules
run: sudo ln -s /srv/portfolio/node_modules /home/gh-runner/actions-runner/_work/portfolio/portfolio/
Expand All @@ -66,8 +64,9 @@ jobs:
- name: Restore permissions in production directory
run: |
sudo chown -R www-data:www-data /srv/portfolio
sudo chmod -R 755 /srv/portfolio
sudo chown -R www-data:www-data /srv/portfolio/
sudo chmod -R 755 /srv/portfolio/
sudo chown -R gh-runner:gh-runner /home/gh-runner/
- name: Install deps in prod after copy to be safe
run: |
Expand Down

0 comments on commit ca343c5

Please sign in to comment.