Skip to content

first subset of TFS god rolls from Panda (#568) #70

first subset of TFS god rolls from Panda (#568)

first subset of TFS god rolls from Panda (#568) #70

Workflow file for this run

name: beta-deploy
on:
push:
branches: [ beta ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1 #this installs node and npm for us
with:
node-version: '18.x'
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm config set "@fortawesome:registry" https://npm.fontawesome.com && npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONT }}
- run: npm install
- run: npm install -g @angular/cli > /dev/null
- run: npm run stage-beta-keys
env:
BETA_API_KEY: ${{ secrets.BETA_API_KEY }}
BETA_CLIENT_SECRET: ${{ secrets.BETA_CLIENT_SECRET }}
BETA_DIM_API_KEY: ${{ secrets.BETA_DIM_API_KEY }}
- run: ng build --configuration production
- name: copy file via ssh key
uses: appleboy/scp-action@v0.1.3
env:
HOST: ${{ secrets.BETA_HOST }}
USERNAME: ${{ secrets.BETA_UID }}
PORT: ${{ secrets.BETA_PORT }}
KEY: ${{ secrets.BETA_SSH }}
with:
source: "./dist/"
target: "/home/${{ secrets.BETA_UID }}/d2checklist-beta/"
strip_components: 2 # this is important