Skip to content

Commit

Permalink
Copied code from the deploy production YAML and also formatted deploy…
Browse files Browse the repository at this point in the history
… production YAML to match
  • Loading branch information
benji-glitsos-ga committed Mar 12, 2024
1 parent 0a1fad6 commit 259e01a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/deploy-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,50 @@ on:
- opened
- reopened

# jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
jobs:
publish:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.11"]
node-version: [18.x]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Pull latest from submodules
run: git submodule foreach git pull origin stable
# This doesn't update the submodule to the latest commit on the origin; therefore, you should manually do this on a semi-regular basis.

- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install requirements
run: ./install-production.sh

- name: Build site
env:
BUILD_MODE: production
run: ./build-production.sh

- name: Configure AWS credentials via OIDC
# if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: arn:aws:iam::538673716275:role/github-actions-dea-docs
# aws-region: ap-southeast-2

- name: Deploy site
# if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
# env:
# DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}
# run: ./deploy-production.sh

# DEPLOY_NAME = "Pull Request"
# BUILD_MODE = "demo"
3 changes: 2 additions & 1 deletion .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ permissions:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.11"]
node-version: [18.x]

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 259e01a

Please sign in to comment.