fix: Remove pointer cloning warning. #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages CI | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
documentation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Vlang | |
uses: vlang/setup-v@v1.3 | |
with: | |
stable: true | |
- name: Checkout ${{ github.event.repository.name }} | |
uses: actions/checkout@v3 | |
- name: Build the documentation | |
run: v doc -m -readme -f html . | |
- name: TAR and GZIP the documentation | |
run: | | |
tar \ | |
--dereference --hard-dereference \ | |
--directory "_docs" \ | |
-cvf "$RUNNER_TEMP/github-pages.tar" \ | |
--exclude=.git \ | |
--exclude=.github \ | |
. | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "github-pages" | |
path: ${{ runner.temp }}/github-pages.tar | |
if-no-files-found: error | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |