Add NanoSpeed API as first class to get the conf time on the home pag… #777
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: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.16.0 | |
cache: "npm" | |
- name: Build static assets | |
env: | |
REACT_APP_GOOGLE_MEASUREMENT_ID: ${{ secrets.REACT_APP_GOOGLE_MEASUREMENT_ID }} | |
run: | | |
npm install | |
npm run build | |
- name: Rsync deployment | |
uses: burnett01/[email protected] | |
with: | |
switches: -avzr --delete --exclude=".env" --exclude="server/data/" --exclude="public/cryptocurrencies/logo" | |
path: "." | |
remote_path: /var/www/www.nanolooker.com | |
remote_host: ${{ secrets.DO_HOST }} | |
remote_user: ${{ secrets.DO_USERNAME }} | |
remote_key: ${{ secrets.DO_SSHKEY }} |