Compare commits

...

16 Commits

Author SHA1 Message Date
dc6e801c23 ci: fix Pages deployment
Some checks failed
CI / build (push) Has been cancelled
CI / deploy (push) Has been cancelled
2025-03-29 20:35:19 +03:00
788a9f38fe ci: fix V setup one more time 2025-03-29 20:33:16 +03:00
2d1a4bc89f ci: fix V setup again 2025-03-29 20:31:34 +03:00
143b646dc8 ci: fix V setup 2025-03-29 20:28:08 +03:00
755db6988c ci: fix 2025-03-29 20:24:12 +03:00
0a231f6ba2 ci: fix build x6 2025-03-29 20:20:19 +03:00
e2fa558ad9 ci: fix build x5 2025-03-29 20:05:12 +03:00
f409fcee70 Create .vdocignore 2025-03-29 19:52:56 +03:00
ffa1bb68c8 ci: fix build x5 2025-03-29 19:51:27 +03:00
e3101160e1 ci: fix build x4 2025-03-29 19:49:14 +03:00
2429fcf6f7 ci: try to fix build 2025-03-29 19:47:53 +03:00
3cb451251c ci: fix build x3 2025-03-29 19:46:04 +03:00
c771a8671f ci: fix build x2 2025-03-29 19:40:30 +03:00
950fd84ae6 ci: fix docs build 2025-03-29 19:34:21 +03:00
15c5ca21d5 ci: Add pages deployment 2025-03-29 19:28:11 +03:00
4f563cae10 ci: Add docs.yaml 2025-03-29 19:12:28 +03:00
2 changed files with 51 additions and 0 deletions

50
.github/workflows/docs.yaml vendored Normal file
View 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
View File

@ -0,0 +1 @@
examples/