Skip to content

update path

update path #25

Workflow file for this run

name: Documentation
on:
push:
branches:
- "main"
tags:
- "*"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}documentation/xconfigs
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- run: mkdir "./docs/${GITHUB_REF#refs/heads/}"
shell: sh
- name: Generate Documentation
run: |
swift package --allow-writing-to-directory "./docs/${GITHUB_REF#refs/heads/}" \
generate-documentation --target XConfigs \
--disable-indexing \
--transform-for-static-hosting \
--output-path "./docs/${GITHUB_REF#refs/heads/}" \
--hosting-base-path XConfigs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2