Skip to content

Deploy Centrapay Docs Dev #67

Deploy Centrapay Docs Dev

Deploy Centrapay Docs Dev #67

Workflow file for this run

name: Deploy Centrapay Docs Dev
on:
workflow_dispatch
jobs:
deploy-dev:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: legacy
- uses: actions/cache@v1
with:
path: legacy/vendor/bundle
key: ${{ runner.os }}-gems-v2-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-v2
- run: gem install bundler
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn install --frozen-lock-file
- run: ./build.sh
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::450412180052:role/github-actions-centrapay-docs
role-session-name: centrapay-docs-preview-deploy-session
aws-region: ap-southeast-1
- run: ./scripts/deploy-dev.sh