diff --git a/.github/workflows/workflow_template.yml b/.github/workflows/workflow_template.yml index 56c463a..b17766e 100644 --- a/.github/workflows/workflow_template.yml +++ b/.github/workflows/workflow_template.yml @@ -3,7 +3,7 @@ name: Deploy Nginx Configuration on: push: branches: - - main + - main jobs: deploy-nginx: @@ -12,9 +12,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: List workspace files + run: ls -la + - name: Deploy nginx configuration run: | - # Copy the configuration file to the nginx directory - sudo cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf - # Reload nginx to apply the new configuration - sudo systemctl reload nginx + sudo /usr/bin/cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf + sudo /usr/bin/systemctl reload nginx