Fix trailing slash breaking relative URLs (#14) #17
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 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/[email protected] | |
- name: Pnpm | |
uses: pnpm/[email protected] | |
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/[email protected] | |
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 }}/' |