Skip to content

Commit

Permalink
Add documentation workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marzvrover committed Dec 9, 2020
1 parent e2e7d9d commit eeb667b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: docs

on:
release:
types: [published]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Get Tag
id: get_tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Run Jazzy
uses: swiftpackages/[email protected]
with:
args: --module_version ${{ steps.get_tag.outputs.tag }} --github_file_prefix https://github.com/swiftpackages/DotEnv/tree/${{ steps.get_tag.outputs.tag }} --output docs/${{ steps.get_tag.outputs.tag }}
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/maindocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: docs

on:
push:
branches: [main]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Run Jazzy
uses: swiftpackages/[email protected]
with:
args: --module_version main --github_file_prefix https://github.com/swiftpackages/DotEnv/tree/main --output docs/main
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit eeb667b

Please sign in to comment.