Skip to content

Commit

Permalink
Create docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yalishanda42 authored Jan 3, 2022
1 parent dd19a7e commit da2a316
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docs

on:
release:
types:
- created

jobs:
generate:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Install tools
run: |
sudo gem instal jazzy
brew install sourcekitten
- name: Generate docs
run: |
sourcekitten doc --spm --module-name FuzzySets > mod1.json
sourcekitten doc --spm --module-name FuzzyNumbers > mod2.json
sourcekitten doc --spm --module-name FuzzyRelations > mod3.json
sourcekitten doc --spm --module-name FuzzyLogic > mod4.json
jazzy --clean --author "Alexander Ignatov" --sourcekitten-sourcefile mod1.json,mod2.json,mod3.json,mod4.json
mkdir docs/Resources && cp Resources/cover.png docs/Resources
- uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs

0 comments on commit da2a316

Please sign in to comment.