Compare commits
No commits in common. "master" and "v0.0.1" have entirely different histories.
50
.github/workflows/docs.yaml
vendored
50
.github/workflows/docs.yaml
vendored
@ -1,50 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
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
|
SPDX_LICENSE_LIST_JSON_URL = https://spdx.org/licenses/licenses.json
|
||||||
|
|
||||||
licenselist:
|
licenselist:
|
||||||
wget -q -O $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_JSON_URL)
|
wget -q -O $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_JSON_URL1)
|
||||||
if ! diff $(SPDX_LICENSE_LIST_FILE) $(SPDX_LICENSE_LIST_FILE_TMP) >/dev/null 2>&1; \
|
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); \
|
then mv -v $(SPDX_LICENSE_LIST_FILE_TMP) $(SPDX_LICENSE_LIST_FILE); \
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user