ci: Add pages deployment
This commit is contained in:
parent
4f563cae10
commit
15c5ca21d5
27
.github/workflows/docs.yaml
vendored
27
.github/workflows/docs.yaml
vendored
@ -11,5 +11,28 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build doc
|
||||
run: v doc -m . -f html -o doc/
|
||||
- name: Build docs
|
||||
run: |
|
||||
ls -alFh
|
||||
wget https://github.com/vlang/v/releases/latest/download/v_linux.zip
|
||||
unzip v_linux.zip
|
||||
./v/v doc -m . -f html -o doc/
|
||||
ln -s doc/licenseid.html doc/index.html
|
||||
ls -alFh doc/
|
||||
|
||||
- name: Upload static files as artifact
|
||||
id: deployment
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: doc/
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
|
Loading…
x
Reference in New Issue
Block a user