Add workflow for stable
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Deploy Astro
|
name: Deploy Dev Website
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -9,13 +9,13 @@ jobs:
|
|||||||
name: Build and Deploy
|
name: Build and Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
services:
|
# services:
|
||||||
mermaid:
|
# mermaid:
|
||||||
image: yuzutech/kroki-mermaid
|
# image: yuzutech/kroki-mermaid
|
||||||
kroki:
|
# kroki:
|
||||||
image: yuzutech/kroki
|
# image: yuzutech/kroki
|
||||||
env:
|
# env:
|
||||||
KROKI_MERMAID_HOST: mermaid
|
# KROKI_MERMAID_HOST: mermaid
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -41,6 +41,6 @@ jobs:
|
|||||||
username: ${{ secrets.SSH_USERNAME }}
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
source: "dist/*"
|
source: "dist/*"
|
||||||
target: /srv/website/dev
|
target: /srv/website/stable
|
||||||
overwrite: true
|
overwrite: true
|
||||||
strip_components: 1
|
strip_components: 1
|
||||||
|
|||||||
46
.gitea/workflows/stable.yml
Normal file
46
.gitea/workflows/stable.yml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Deploy Stable Website
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- senpai
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
name: Build and Deploy
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# services:
|
||||||
|
# mermaid:
|
||||||
|
# image: yuzutech/kroki-mermaid
|
||||||
|
# kroki:
|
||||||
|
# image: yuzutech/kroki
|
||||||
|
# env:
|
||||||
|
# KROKI_MERMAID_HOST: mermaid
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
name: Checkout code
|
||||||
|
|
||||||
|
- name: Setup node and npm
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Check and build
|
||||||
|
run: npm run build
|
||||||
|
# env:
|
||||||
|
# KROKI_SERVER: "http://kroki:8000"
|
||||||
|
|
||||||
|
- name: Copy files via ssh
|
||||||
|
uses: appleboy/scp-action@v1
|
||||||
|
with:
|
||||||
|
host: c0ntroller.de
|
||||||
|
username: ${{ secrets.SSH_USERNAME }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
source: "dist/*"
|
||||||
|
target: /srv/website/dev
|
||||||
|
overwrite: true
|
||||||
|
strip_components: 1
|
||||||
Reference in New Issue
Block a user