mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-07-13 16:16:44 +02:00
Change website workflow to build-only
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Build and Deploy Website
|
name: Build Website
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,21 +8,28 @@ on:
|
|||||||
- website/**
|
- website/**
|
||||||
- github_docs/**
|
- github_docs/**
|
||||||
- .github/workflows/website-deploy.yml
|
- .github/workflows/website-deploy.yml
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- website/**
|
||||||
|
- github_docs/**
|
||||||
|
- .github/workflows/website-deploy.yml
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: website-deploy
|
group: website-build-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-website:
|
||||||
name: Build and Deploy 11ty Website
|
name: Build 11ty Website
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -44,12 +51,9 @@ jobs:
|
|||||||
working-directory: website
|
working-directory: website
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Deploy via rsync
|
- name: Upload website artifact
|
||||||
uses: easingthemes/ssh-deploy@v5.1.0
|
uses: actions/upload-artifact@v4.3.4
|
||||||
with:
|
with:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.KST4CONTEST_DEPLOY_KEY }}
|
name: kst4contest-website
|
||||||
REMOTE_HOST: ${{ secrets.KST4CONTEST_DEPLOY_HOST }}
|
path: website/_site/
|
||||||
REMOTE_USER: ${{ secrets.KST4CONTEST_DEPLOY_USER }}
|
retention-days: 7
|
||||||
SOURCE: website/_site/
|
|
||||||
TARGET: ${{ secrets.KST4CONTEST_DEPLOY_PATH }}
|
|
||||||
ARGS: "-rlgoDzvc --delete"
|
|
||||||
Reference in New Issue
Block a user