Skip to content

Fix trailing slash breaking relative URLs (#14) #17

Fix trailing slash breaking relative URLs (#14)

Fix trailing slash breaking relative URLs (#14) #17

Workflow file for this run

name: deploy docs
on:
push:
branches:
- main
jobs:
docs-deploy:
name: Deploy docs to webpage
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.8]
env:
NODE_ENV: production
PROD_URL: ${{ secrets.PROD_URL }}
REPO_NAME_PROD: ${{ secrets.REPO_NAME_PROD }}
REPO_BRANCH_NAME: ${{ secrets.REPO_BRANCH_NAME }}
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8.9.0
- name: Cache
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}
- name: Use Nodejs ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build project
run: pnpm build
- name: Deploy nyxx dev docs
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_SERVER_KEY }}
ARGS: '-rltDzvO'
SOURCE: 'build/'
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }}
TARGET: '${{ secrets.DEPLOY_REMOTE_TARGET }}/'