Skip to content

Commit

Permalink
Turning off deployment for PR branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Tohaker committed May 7, 2023
1 parent 97e9fd7 commit 621f612
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ on: pull_request
jobs:
checks:
uses: ./.github/workflows/checks.yml
deploy:
needs: checks
uses: ./.github/workflows/pr-environment.yml
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# No deployment while the bot is offline
# deploy:
# needs: checks
# uses: ./.github/workflows/pr-environment.yml
# secrets:
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
15 changes: 8 additions & 7 deletions .github/workflows/pr-teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ on:
- closed

jobs:
build:
uses: ./.github/workflows/build.yml
destroy:
runs-on: ubuntu-latest
needs: build
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -23,13 +26,11 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Generate Data
run: |
npm run build -w @yugiohbot/generate-data
npm run generate:title -w @yugiohbot/generate-data
- name: Build packages
run: npm run build
- name: Download packages
uses: actions/download-artifact@v3
with:
name: packages
path: packages

- uses: hashicorp/setup-terraform@v2

Expand Down

0 comments on commit 621f612

Please sign in to comment.