Compare commits

..

17 Commits

Author SHA1 Message Date
gechandesu
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
gechandesu
788a9f38fe
ci: fix V setup one more time 2025-03-29 20:33:16 +03:00
gechandesu
2d1a4bc89f
ci: fix V setup again 2025-03-29 20:31:34 +03:00
gechandesu
143b646dc8
ci: fix V setup 2025-03-29 20:28:08 +03:00
gechandesu
755db6988c
ci: fix 2025-03-29 20:24:12 +03:00
gechandesu
0a231f6ba2
ci: fix build x6 2025-03-29 20:20:19 +03:00
gechandesu
e2fa558ad9
ci: fix build x5 2025-03-29 20:05:12 +03:00
gechandesu
f409fcee70
Create .vdocignore 2025-03-29 19:52:56 +03:00
gechandesu
ffa1bb68c8
ci: fix build x5 2025-03-29 19:51:27 +03:00
gechandesu
e3101160e1
ci: fix build x4 2025-03-29 19:49:14 +03:00
gechandesu
2429fcf6f7
ci: try to fix build 2025-03-29 19:47:53 +03:00
gechandesu
3cb451251c
ci: fix build x3 2025-03-29 19:46:04 +03:00
gechandesu
c771a8671f
ci: fix build x2 2025-03-29 19:40:30 +03:00
gechandesu
950fd84ae6
ci: fix docs build 2025-03-29 19:34:21 +03:00
gechandesu
15c5ca21d5
ci: Add pages deployment 2025-03-29 19:28:11 +03:00
gechandesu
4f563cae10
ci: Add docs.yaml 2025-03-29 19:12:28 +03:00
gechandesu
0b85f4a661
fix SPDX URL in Makefile 2025-01-22 03:29:26 +03:00
3 changed files with 52 additions and 1 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/

View File

@ -7,7 +7,7 @@ SPDX_LICENSE_LIST_FILE_TMP = /tmp/licenselist.json.new
SPDX_LICENSE_LIST_JSON_URL = https://spdx.org/licenses/licenses.json
licenselist:
wget -q -O $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_JSON_URL1)
wget -q -O $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_JSON_URL)
if ! diff $(SPDX_LICENSE_LIST_FILE) $(SPDX_LICENSE_LIST_FILE_TMP) >/dev/null 2>&1; \
then mv -v $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_FILE); \
fi