refactor: remove unused pages #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |