-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split release and deploy workflows, use workflow_dispatch for …
…manual run
- Loading branch information
1 parent
a3780c4
commit 88aa48c
Showing
3 changed files
with
63 additions
and
68 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-demo: | ||
name: Deploy demo website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Github checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup node.js environment | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.18.0' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install Node.js dependencies | ||
run: npm ci | ||
- name: Build dist | ||
run: npm run dist | ||
- name: Build demo | ||
run: npm run demo | ||
- name: Deploy demo using SCP | ||
uses: garygrossgarten/github-action-scp@release | ||
with: | ||
local: demo | ||
remote: ${{ vars.KONFER_SSH_TARGET }} | ||
host: ${{ secrets.KONFER_SSH_HOST }} | ||
username: ${{ secrets.KONFER_SSH_USER }} | ||
password: ${{ secrets.KONFER_SSH_PWD }} | ||
|
||
deploy-documentation: | ||
name: Deploy documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Github checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Restore cache for node_modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install Node.js dependencies | ||
run: npm ci | ||
- name: Build documentation | ||
run: npm run docs:build | ||
- name: Deploy documentation using SCP | ||
uses: garygrossgarten/github-action-scp@release | ||
with: | ||
local: docs/.vitepress/dist | ||
remote: "${{ vars.KONFER_SSH_TARGET_DOC }}" | ||
host: ${{ secrets.KONFER_SSH_HOST }} | ||
username: ${{ secrets.KONFER_SSH_USER }} | ||
password: ${{ secrets.KONFER_SSH_PWD }} |
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