-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.04 KB
/
deploy-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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