Skip to content

Commit

Permalink
Auto-publish docs on release (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Sep 29, 2021
1 parent 4c18224 commit 03f96a3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docs.yaml
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
3 changes: 0 additions & 3 deletions fission.yaml

This file was deleted.

0 comments on commit 03f96a3

Please sign in to comment.