mirror of
https://github.com/xtool-org/xtool.git
synced 2026-11-21 02:41:46 +03:00
32 lines
890 B
YAML
32 lines
890 B
YAML
on:
|
|
- push
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
- name: Build DocC
|
|
run: |
|
|
swift package --allow-writing-to-package-directory \
|
|
generate-documentation --target xtool --disable-indexing --hosting-base-path /xtool \
|
|
--output-path docs
|
|
|
|
echo "<script>window.location.href += \"/documentation/xtool\"</script>" > docs/index.html;
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: 'docs'
|
|
- id: deployment
|
|
name: Deploy to GitHub Pages
|
|
uses: actions/deploy-pages@v4
|