Skip to content

Merge pull request #3 from centrifuge/feat/centrifuge-1023 #23

Merge pull request #3 from centrifuge/feat/centrifuge-1023

Merge pull request #3 from centrifuge/feat/centrifuge-1023 #23

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: πŸ›Ž Checkout
uses: actions/checkout@v2
- uses: ./.github/workflows/rust-install
- name: πŸ”§ Install yarn
run: npm install -g yarn
- name: Get yarn cache path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: ⚑ NPM Cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: πŸ”§ Install dependancies
run: yarn
- name: βš™ Run verifier
run: make verifier
- name: βš™ Run collector
run: make collector
- name: πŸš€ Deploy
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -u "GitHub Action <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}