fix: the commitment #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create documentation | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'Sources/**/*' | |
jobs: | |
docs: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: fwcd/swift-docc-action@v1 | |
with: | |
target: SolanaSwift | |
output: ./docs | |
hosting-base-path: solana-swift | |
disable-indexing: 'true' | |
transform-for-static-hosting: 'true' | |
- name: Init new repo for docs | |
run: | | |
cd docs | |
git init | |
git add -A | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m 'deploy' | |
- name: Force push to destination branch | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: docs | |
force: true | |
directory: ./docs |