start custom-domain doc #2341
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
# Push tests pushes; PR tests merges | |
on: [ push, pull_request ] | |
jobs: | |
# Test the build | |
build: | |
# Setup | |
runs-on: ubuntu-latest | |
# Go | |
steps: | |
- name: Build App | |
uses: architect/action-build@v3 | |
with: | |
node-version: lts/* | |
# Assuming all that went fine (and it's main): deploy! | |
deploy: | |
# Setup | |
needs: build | |
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
# Go | |
steps: | |
- name: Deploy app | |
uses: architect/action-deploy@v1 | |
with: | |
node-version: lts/* | |
aws_access_key_id: ${{secrets.AWS_ACCESS_KEY_ID}} | |
aws_secret_access_key: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
- name: Notify | |
uses: sarisia/actions-status-discord@v1 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
title: "deploy build" | |
color: 0x222222 | |
username: GitHub Actions |