Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
dc6e801c23 | ||
|
788a9f38fe | ||
|
2d1a4bc89f | ||
|
143b646dc8 | ||
|
755db6988c | ||
|
0a231f6ba2 | ||
|
e2fa558ad9 | ||
|
f409fcee70 | ||
|
ffa1bb68c8 | ||
|
e3101160e1 | ||
|
2429fcf6f7 | ||
|
3cb451251c | ||
|
c771a8671f | ||
|
950fd84ae6 | ||
|
15c5ca21d5 | ||
|
4f563cae10 | ||
|
0b85f4a661 |
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/
|
2
Makefile
2
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user