feat: docs.pivoine.art
This commit is contained in:
15
.github/workflows/docs.pivoine.art.yaml
vendored
15
.github/workflows/docs.pivoine.art.yaml
vendored
@@ -7,25 +7,30 @@ on:
|
||||
- main # Or your default branch
|
||||
paths:
|
||||
- 'Projects/kompose/**'
|
||||
- 'Projects/docs.pivoine.art/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./Projects/kompose/docs
|
||||
working-directory: ./Projects
|
||||
environment: ionos
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
- name: Build JavaScript
|
||||
run: |
|
||||
cd docs.pivoine.art
|
||||
pnpm install
|
||||
pnpm build
|
||||
mv out ${{ github.workspace }}/_site
|
||||
cd kompose/docs
|
||||
pnpm install
|
||||
pnpm generate
|
||||
mv .output/public ${{ github.workspace }}/_site/
|
||||
mv .output/public ${{ github.workspace }}/_site/kompose
|
||||
|
||||
- name: 🚀 Deploy via SSH
|
||||
uses: appleboy/scp-action@master
|
||||
@@ -35,7 +40,7 @@ jobs:
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
source: _site/* # Adjust if required
|
||||
target: /var/www/docs.pivoine.art/kompose # Set to your deployment directory (for example /public_html)
|
||||
target: /var/www/docs.pivoine.art # Set to your deployment directory (for example /public_html)
|
||||
strip_components: 1 # This ensures that a subdirectory is not created
|
||||
rm: 1
|
||||
- name: Docker compose restart
|
||||
|
||||
Reference in New Issue
Block a user