Skip to content

eslint

eslint #2353

Workflow file for this run

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: Check out repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install
run: npm i
- name: Staging Deploy
if: github.ref == 'refs/heads/main'
run: npx arc deploy --staging
env:
CI: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Production Deploy
if: startsWith(github.ref, 'refs/tags/v')
run: npx arc deploy --production
env:
CI: true
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