Skip to content

Update worflows

Update worflows #26

Workflow file for this run

name: Deploy DocC
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
permissions:
contents: write
# pages: write
# id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: macos-12
strategy:
fail-fast: false
matrix:
include:
- target: "Flare"
base_path: "flare"
- target: "FlareUI"
base_path: "flareui"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: ${{ matrix.target }} DocC
uses: ./.github/actions/publish_pages
with:
target: ${{ matrix.target }}
base_path: ${{ matrix.base_path }}
- name: Commit and push generated documentation
uses: actions/checkout@v3
run: |
cp -r ./docs/${{ inputs.base_path }} ./${{ inputs.base_path }}
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git switch gh-pages
git add ./${{ inputs.base_path }}
git commit -a -m "Generated ${{ inputs.target }} Swift DocC"
git push origin gh-pages