name: Build and Deploy Website on: push: branches: - main paths: - website/** - github_docs/** - .github/workflows/website-deploy.yml workflow_dispatch: env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true concurrency: group: website-deploy cancel-in-progress: true permissions: contents: read jobs: build-and-deploy: name: Build and Deploy 11ty Website runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4.1.7 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: "24" cache: npm cache-dependency-path: website/package-lock.json - name: Install dependencies working-directory: website run: npm ci - name: Build website working-directory: website run: npm run build - name: Deploy via rsync uses: easingthemes/ssh-deploy@v5.1.0 with: SSH_PRIVATE_KEY: ${{ secrets.KST4CONTEST_DEPLOY_KEY }} REMOTE_HOST: ${{ secrets.KST4CONTEST_DEPLOY_HOST }} REMOTE_USER: ${{ secrets.KST4CONTEST_DEPLOY_USER }} SOURCE: website/_site/ TARGET: ${{ secrets.KST4CONTEST_DEPLOY_PATH }} ARGS: "-rlgoDzvc --delete"