Skip to content

Commit

Permalink
Update workflow_template.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
haahauge authored and GitHub Enterprise committed Mar 19, 2025
1 parent d2d403f commit 78d13fa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/workflow_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Nginx Configuration
on:
push:
branches:
- main
- main

jobs:
deploy-nginx:
Expand All @@ -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

0 comments on commit 78d13fa

Please sign in to comment.