Skip to content

Deploy to GitHub Pages #1

Deploy to GitHub Pages

Deploy to GitHub Pages #1

name: Deploy to GitHub Pages
on:
push:
tags:
- 'v*'
workflow_dispatch: # Allows manual triggering of the workflow
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
permissions:
contents: read
deployments: write
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: '5.9' # Set the Swift version you need
- name: Build DocC
run: |
sh ./build-site.sh
# - name: Prepare relative files
# run: |
# python3 ./path-replacement.py
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'Build'
- id: deployment
name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4