mirror of
https://github.com/PeWu/topola-viewer.git
synced 2025-12-23 18:50:04 +00:00
29 lines
798 B
YAML
29 lines
798 B
YAML
name: Deploy to WikiTree Apps
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18.x
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm test
|
|
- run: npm run cy:start-and-run
|
|
- name: Install lftp
|
|
run: sudo apt-get install -y lftp
|
|
- name: Set up ssh
|
|
run: |
|
|
mkdir ~/.ssh
|
|
echo 'apps.wikitree.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEvmLzMlPTrjXGh2Bw/8AF4L9tQob3YaheCA63Mrt6v5OWVYeKQpE2TnM7MNJeMZrVvTOuDlhKXM1ojlVeDwyQ4=' >> ~/.ssh/known_hosts
|
|
- run: npm run deploy-wikitree
|
|
env:
|
|
LFTP_PASSWORD: ${{ secrets.WIKITREE_PASSWORD }}
|