ci: Add pages deployment

This commit is contained in:
gechandesu 2025-03-29 19:28:11 +03:00 committed by GitHub
parent 4f563cae10
commit 15c5ca21d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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