Skip to content

Commit

Permalink
add: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rengert committed Sep 30, 2023
1 parent 374895a commit f3d6efd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deployment

on:
push:
branches: [ develop, new-version ]

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 25
strategy:
matrix:
node-version: [ 20.x ]

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Prepare and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npm run ng -- deploy

0 comments on commit f3d6efd

Please sign in to comment.