Skip to content

refactor: remove unused pages #3

refactor: remove unused pages

refactor: remove unused pages #3

Workflow file for this run

name: Publish
on:
push:
branches: [ "develop", "main" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Deploy website
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Upload source to Hetzner via SCP
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
port: ${{ secrets.PORT }}
source: "/home/runner/work/portfolio/portfolio/"
target: "/home/${{ secrets.USERNAME }}/docker/portfolio"
timeout: 120s
strip_components: 2
- name: Restart Website via SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
port: ${{ secrets.PORT }}
script: |
cd /home/${{ secrets.USERNAME }}/docker/portfolio
docker compose down
docker build -t portfolio .
docker compose up -d