add NF and DIO #25
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: CI | |
on: | |
push: | |
branches: | |
- release/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Build | |
run: | | |
npm install | |
- name: Set up Git | |
run: | | |
git config --global user.email "michael@sheb.rocks" | |
git config --global user.name "Sheb (but not really)" | |
- name: Set up SSH | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
run: | | |
mkdir -p "${HOME}/.ssh" | |
echo "$DEPLOY_KEY" > "${HOME}/.ssh/id_rsa" | |
ssh-keyscan -t rsa github.com > "${HOME}/.ssh/known_hosts" | |
chmod 400 "${HOME}/.ssh/id_rsa" | |
- name: Publish | |
run: npm run deploy -- --repo git@github.com:shebtastic/sheb.rocks.git |