Compare commits
16 Commits
0b85f4a661
...
dc6e801c23
Author | SHA1 | Date | |
---|---|---|---|
dc6e801c23 | |||
788a9f38fe | |||
2d1a4bc89f | |||
143b646dc8 | |||
755db6988c | |||
0a231f6ba2 | |||
e2fa558ad9 | |||
f409fcee70 | |||
ffa1bb68c8 | |||
e3101160e1 | |||
2429fcf6f7 | |||
3cb451251c | |||
c771a8671f | |||
950fd84ae6 | |||
15c5ca21d5 | |||
4f563cae10 |
50
.github/workflows/docs.yaml
vendored
Normal file
50
.github/workflows/docs.yaml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup V
|
||||
run: |
|
||||
wget -qO /tmp/v.zip https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
||||
unzip -q /tmp/v.zip -d /tmp
|
||||
echo /tmp/v >> "$GITHUB_PATH"
|
||||
|
||||
- name: Build docs
|
||||
run: |
|
||||
v doc -f html -m .
|
||||
pushd _docs
|
||||
ln -vs licenseid.html index.html
|
||||
ls -alFh
|
||||
popd
|
||||
|
||||
- name: Upload static files as artifact
|
||||
id: deployment
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: _docs/
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
1
.vdocignore
Normal file
1
.vdocignore
Normal file
@ -0,0 +1 @@
|
||||
examples/
|
Reference in New Issue
Block a user