mirror of
https://github.com/RGBCube/chatgpt.v
synced 2025-07-28 01:07:44 +00:00
Initial commit
This commit is contained in:
commit
0731fa804f
9 changed files with 201 additions and 0 deletions
48
.github/workflows/deploy-docs.yml
vendored
Normal file
48
.github/workflows/deploy-docs.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
name: Deploy Docs
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
deploy-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set Up V
|
||||
uses: vlang/setup-v@v1.1
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Checkout Site Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: RGBCube/rgbcube.github.io
|
||||
path: site
|
||||
|
||||
- name: Generate Docs
|
||||
run: |
|
||||
mv ./src ./chatgpt.v # For the docs header
|
||||
cp ./README.md ./chatgpt.v/ # For the README to be included in the docs.
|
||||
v doc -readme -f html -o ./ -m ./chatgpt.v
|
||||
|
||||
rm -rf ./site/docs/chatgpt || true
|
||||
mkdir -p ./site/docs/chatgpt
|
||||
cp -r ./_docs/* ./site/docs/chatgpt/
|
||||
|
||||
- name: Add Private Key To SSH Agent
|
||||
uses: webfactory/ssh-agent@v0.7.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.RGBCUBE_GITHUB_IO_PRIVATE_KEY }}
|
||||
|
||||
- name: Push Docs To GitHub
|
||||
continue-on-error: true
|
||||
run: |
|
||||
cd site
|
||||
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@users.noreply.github.com"
|
||||
|
||||
git add ./
|
||||
git commit -m "Deploy chatgpt.v docs"
|
||||
git push git@github.com:RGBCube/rgbcube.github.io master
|
20
.github/workflows/test.yml
vendored
Normal file
20
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set Up V
|
||||
uses: vlang/setup-v@v1.1
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test
|
||||
run: v test ./
|
20
.github/workflows/verify-formatting.yml
vendored
Normal file
20
.github/workflows/verify-formatting.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Verify Formatting
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
verify-formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set Up V
|
||||
uses: vlang/setup-v@v1.1
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Verify That The Code Is Formatted
|
||||
run: v fmt -verify ./
|
Loading…
Add table
Add a link
Reference in a new issue