Skip to content

fix: fix wrong link

fix: fix wrong link #5

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