Skip to content

Commit

Permalink
sss
Browse files Browse the repository at this point in the history
  • Loading branch information
l10178 committed Feb 24, 2024
1 parent 8c080c2 commit e660b36
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy github pages

on:
workflow_dispatch:
push:
branches:
- doks3

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run linters
run: npm run lint --if-present

- name: Build site
run: npm run build

- name: Deploy github pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.xlabs.club
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
yarn-error.log
node_modules
public
# resources
resources
2 changes: 1 addition & 1 deletion config/production/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Overrides for production environment
baseurl = "https://getdoks.org/"
baseurl = "https://www.xlabs.club/"

0 comments on commit e660b36

Please sign in to comment.