generated from fission-codes/project-template
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'releases/**' | ||
- '!releases/**-alpha' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node Environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
# https://github.com/actions/cache/blob/main/examples.md#node---yarn | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v2 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install Dependencies | ||
run: yarn install --network-concurrency 1 | ||
|
||
- name: Generate docs | ||
run: yarn run docs | ||
|
||
- name: Publish to Fission | ||
uses: fission-suite/publish-action@v1 | ||
with: | ||
machine_key: ${{ secrets.FISSION_PRODUCTION_KEY }} | ||
build_dir: ./docs | ||
app_url: webnative.fission.app |
This file was deleted.
Oops, something went wrong.