Skip to content

Commit

Permalink
chore: build docs to separate branch
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAntix committed Apr 26, 2024
1 parent a459e48 commit e3341cf
Show file tree
Hide file tree
Showing 58 changed files with 563 additions and 2,133 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: npm install, build, test
run: |
npm i
npm run build
npm run test
git config --global user.email "[email protected]"
git config --global user.name "MrAntix"
if git show-ref --quiet refs/heads/docs; then
git branch -D docs
fi
git checkout -b docs
npm run build.docs
git add -f ./docs
git commit -m"docs: update"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/mrantix/bind.git
git push origin docs --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
dist/
tmp/
out-tsc/
docs/

# dependencies
node_modules/
Expand Down
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

113 changes: 0 additions & 113 deletions docs/assets/highlight.css

This file was deleted.

15 changes: 0 additions & 15 deletions docs/assets/icons.js

This file was deleted.

Loading

0 comments on commit e3341cf

Please sign in to comment.