From 78d13faab3971690e304643869d01a7f8f169fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Haugen?= Date: Wed, 19 Mar 2025 12:28:23 +0100 Subject: [PATCH] Update workflow_template.yml --- .github/workflows/workflow_template.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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