Test deploy into www dir #8
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
name: "Deploy hidden service" | |
on: | |
push: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Sync node version and setup cache | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Rsync | |
uses: up9cloud/[email protected] | |
env: | |
ARGS_MORE: "--dry-run" | |
USER: github | |
HOST: ${{ secrets.HIDDEN_SERVICE_HOST }} | |
KEY: ${{ secrets.HIDDEN_SERVICE_SSH_KEY }} | |
SOURCE: "./www/" | |
TARGET: ${{ secrets.HIDDEN_SERVICE_TARGET_DIR }}/www/ |