Skip to content

feat(talks): add enhancing developer productivity talk #402

feat(talks): add enhancing developer productivity talk

feat(talks): add enhancing developer productivity talk #402

Workflow file for this run

name: Master - Build and Deploy
on:
push:
branches:
- master
jobs:
re-check:
strategy:
fail-fast: false
matrix:
command:
- lint
- test
name: ${{ matrix.command }}
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: 'Install dependencies'
run: yarn install --immutable
- name: 'Run ${{ matrix.command }}'
run: yarn ${{ matrix.command }}
deploy:
runs-on: ubuntu-latest
needs: [re-check]
strategy:
fail-fast: false
matrix:
repo:
- csi-lk/csi.lk
- csi-lk/callumsilcock.com
- csi-lk/xn--ev9h.ml # 🧔
- csi-lk/xn--g5hx212o.ml # 🧔‍♂️
steps:
- name: 'Cache'
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: 'Install dependencies'
run: yarn install --immutable
- name: 'Build'
run: yarn build:prod
- name: 'Deploy csi.lk'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REPOSITORY_NAME: ${{ matrix.repo }}
BRANCH: gh-pages
FOLDER: dist
GIT_CONFIG_NAME: Callum Silcock
GIT_CONFIG_EMAIL: [email protected]
smoke-test:
needs: [deploy]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: 'Install dependencies'
run: yarn install --immutable
- name: 'Smoke test'
run: yarn e2e:prod
notify:
runs-on: ubuntu-latest
needs: [smoke-test, deploy]
steps:
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: '#000'
SLACK_ICON: https://raw.githubusercontent.com/github/explore/master/topics/actions/actions.png
SLACK_MESSAGE: 'Deployed https://csi.lk to production :rocket:'
SLACK_TITLE: Production Deployment
SLACK_USERNAME: deployBot