Skip to content

add SeedHammer, information on dog tag machines #47

add SeedHammer, information on dog tag machines

add SeedHammer, information on dog tag machines #47

name: Build lncm site with actions on PUSH to master (lncm.io) as well as TOR site
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
name: Checkout master from this repo
- name: Checkout submodules associated with this repo
uses: textbook/[email protected]
- name: Setup Node.js for use with actions
uses: actions/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- run: npm install
name: Run NPM install
- run: npm run build
name: Run NPM build
- run: git config --global user.email "[email protected]" && git config --global user.name "LNCM Contributors"
name: Set up git
- name: Fetch master branch so we can copy it across
run: git fetch origin master
- name: Change Origin to SSH
run: git remote set-url origin [email protected]:lncm/lncm.github.io.git
- name: Set up SSH environment
run: mkdir -p ~/.ssh && echo "${PRIVATE_KEY}" > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519 && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
- run: npm run deploy
name: Run Deployment script to MASTER
- name: reset source to HEAD
run: git reset --hard
- name: Checkout master
run: git checkout master
- name: Fetch latest sources
run: git pull origin master
- name: Remove node_modules from working directory
run: rm -fr node_modules
- name: Push contents of current working directory (that is master) to nolim1t's TOR site
uses: nolim1t/actions/[email protected]
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
DEST: ${{ secrets.DEST }}
SRC: ${{ secrets.SRC }}