Skip to content

Merge pull request #1590 from criblio/feat-fsan-by-default #68

Merge pull request #1590 from criblio/feat-fsan-by-default

Merge pull request #1590 from criblio/feat-fsan-by-default #68

Workflow file for this run

#
# AppScope Website CI Workflow
#
# This is the GitHub workflow for AppScope's production website at
# https://appscope.dev/ and the staging site at
# https://staging.appscope.dev/.
#
# We publish `web*` tags to the production site. Other pushes to the
# master branch get published to the staging site.
#
name: Deploy Website
on:
push:
branches:
- 'master'
tags:
- 'web*'
paths:
- 'website/**'
- 'docker/docs/layout.js'
- 'docker/docs/schema2md.js'
- 'docs/schemas/**'
jobs:
website:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Build schema-reference.md"
run: make docs-generate
- name: configure AWS creds
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.APPSCOPEDEPLOYROLE }}
role-session-name: appscope-deploy
aws-region: us-west-2
- name: "Website Deploy"
env:
STAGING_GATSBY_ALGOLIA_APP_ID: ${{ secrets.STAGING_GATSBY_ALGOLIA_APP_ID }}
STAGING_GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.STAGING_GATSBY_ALGOLIA_SEARCH_KEY }}
STAGING_GATSBY_ALGOLIA_WRITE_KEY: ${{ secrets.STAGING_GATSBY_ALGOLIA_WRITE_KEY }}
PROD_GATSBY_ALGOLIA_APP_ID: ${{ secrets.PROD_GATSBY_ALGOLIA_APP_ID }}
PROD_GATSBY_ALGOLIA_SEARCH_KEY: ${{ secrets.PROD_GATSBY_ALGOLIA_SEARCH_KEY }}
PROD_GATSBY_ALGOLIA_WRITE_KEY: ${{ secrets.PROD_GATSBY_ALGOLIA_WRITE_KEY }}
run: ./website/deploy.sh