Skip to content

Add concurency support for the build-linux and build-macos workflows #5

Add concurency support for the build-linux and build-macos workflows

Add concurency support for the build-linux and build-macos workflows #5

Workflow file for this run

name: docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Pages
uses: actions/configure-pages@v1
- name: Generate Docs
uses: fwcd/swift-docc-action@v1
with:
target: Peppermint
output: ./docs
transform-for-static-hosting: "true"
disable-indexing: "true"
hosting-base-path: peppermint
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs
steps:
- name: Deploy Docs
uses: actions/deploy-pages@v1