forked from abap-openapi/abap-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 975 Bytes
/
web.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Web
on: [push, pull_request]
jobs:
web:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: npm install
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
npm install
npm test
cd web
npm install
npm run build
- name: Install SSH Client
if: github.ref == 'refs/heads/main' && github.repository == 'abap-openapi/abap-openapi'
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Deploy
if: github.ref == 'refs/heads/main' && github.repository == 'abap-openapi/abap-openapi'
uses: JamesIves/[email protected]
with:
SSH: true
BRANCH: main
REPOSITORY_NAME: abap-openapi/web-openapi-client
FOLDER: web/dist
GIT_CONFIG_NAME: actions
GIT_CONFIG_EMAIL: [email protected]