Skip to content

Commit

Permalink
Deploy ve7tzb.ca
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonb927 committed Mar 9, 2024
1 parent 6ddad9d commit abfa6d4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,54 @@ jobs:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Failed to deploy brandonb.ca"
color: 0xdc3545

build-ve7tzb_ca:
name: Build and Deploy ve7tzb.ca
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: .awspublish-brandonb-web-media
key: ${{ runner.os }}-awspublish-cache-${{ hashFiles('**/.awspublish-brandonb-web-media') }}
restore-keys: |
${{ runner.os }}-awspublish-cache-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
bundler-cache: true

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install ruby dependencies
run: gem install bundler && bundle install

- name: Install js dependencies
run: npm ci

- name: Build and deploy
run: npm run ve7tzb.ca:deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

- uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Successfully deployed ve7tzb.ca"
color: 0x28a745

- uses: sarisia/actions-status-discord@v1
if: failure()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "Failed to deploy ve7tzb.ca"
color: 0xdc3545

0 comments on commit abfa6d4

Please sign in to comment.