Skip to content

Add nginx configuration for refreshwifi.com with HTTPS redirection an… #27

Add nginx configuration for refreshwifi.com with HTTPS redirection an…

Add nginx configuration for refreshwifi.com with HTTPS redirection an… #27

Workflow file for this run

name: Deploy freshpass Website
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to server
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
path: out/
remote_path: /var/www/freshpass/
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.SSH_KEY }}
- name: Restart nginx
uses: appleboy/ssh-action@v0.1.5
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
timeout: 60s
command_timeout: 5m
script: |
sudo systemctl restart nginx