Skip to content

feat: add code-server #6

feat: add code-server

feat: add code-server #6

Workflow file for this run

name: gendocs-and-deploy-docs
on:
push:
branches:
- main
- next
- next-major
- '[0-9]+.[0-9]+.x'
- alpha
- beta
- feature/*
- fix/*
pull_request:
branches:
- main
- next
- next-major
- '[0-9]+.[0-9]+.x'
- alpha
- beta
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
# - name: Get Tag Version
# id: get_version
# run: echo "VERSION=$(git tag -l --sort=v:refname "v*" | tail -1)" >> $GITHUB_ENV
# - name: Checkout Tag Version
# run: |
# git checkout "${{ env.VERSION }}"
# - name: Update version for package.json
# run: |
# jq '.version = "${{ env.VERSION }}"' package.json > temp.json && mv temp.json package.json
# - name: Run tests
# run: npm test
- name: Generate pages
run: npm run build
- name: Copy files
run: cp code-server dist/get/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist