Skip to content

Commit

Permalink
chore(general): configure sample-app deployment (salesforce#1053)
Browse files Browse the repository at this point in the history
This PR enables CI to build and deploy `ng-playground` to akita.surge.sh

Requires specifying `surge_login` and `surge_token` (can be obtained by running `surge token`)

Closes: salesforce#1052
  • Loading branch information
Den-dp authored Feb 6, 2023
1 parent e8b7d6a commit ea7c0ec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-sample-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'deploy-sample-app'

on:
push:
branches:
- master

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- run: npm i
- run: npx nx build ng-playground

- name: Deploy to akita.surge.sh
uses: dswistowski/surge-sh-action@v1
with:
domain: 'akita.surge.sh'
project: 'dist/packages/ng-playground'
login: ${{ secrets.surge_login }}
token: ${{ secrets.surge_token }}

0 comments on commit ea7c0ec

Please sign in to comment.