Skip to content

Commit

Permalink
chore: Update ownership and permissions in deployment workflow (#638)
Browse files Browse the repository at this point in the history
* chore: Update ownership and permissions in deployment workflow

* chore: Update pnpm action-setup to version 4 in deployment and test workflows
  • Loading branch information
vincentauger authored May 24, 2024
1 parent eacc027 commit 81f7e5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v4

- name: pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 7
- name: Use Node.js 21.x
Expand Down Expand Up @@ -102,9 +102,9 @@ jobs:
php artisan db:seed --class=RoleAndPermissionSeeder --force
sudo systemctl reload php8.3-fpm.service
ln -s -n -f $RELEASE_PATH $ACTIVE_RELEASE_PATH
sudo chown -h osp:www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp:www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp:www-data $STORAGE_PATH
sudo chown -h osp.www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp.www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp.www-data $STORAGE_PATH
sudo chmod -R 771 $STORAGE_PATH
deploy-on-production:
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
php artisan db:seed --class=RoleAndPermissionSeeder --force
sudo systemctl reload php8.3-fpm.service
ln -s -n -f $RELEASE_PATH $ACTIVE_RELEASE_PATH
sudo chown -h osp:www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp:www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp:www-data $STORAGE_PATH
sudo chown -h osp.www-data $ACTIVE_RELEASE_PATH
shdo chown -R osp.www-data $ACTIVE_RELEASE_PATH
sudo chown -R osp.www-data $STORAGE_PATH
sudo chmod -R 771 $STORAGE_PATH
2 changes: 1 addition & 1 deletion .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Execute tests (Unit and Feature tests) via PEST
run: vendor/bin/pest --ci --parallel
- name: pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js 21.x
Expand Down

0 comments on commit 81f7e5e

Please sign in to comment.