File tree Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Expand file tree Collapse file tree 1 file changed +29
-29
lines changed Original file line number Diff line number Diff line change 1-
2- name : Deploy to demo
3-
4- on :
5- push :
6- branches :
7- - ' demo'
8- paths :
9- - ' src/**'
10- repository_dispatch :
11- types : deploy-to-demo
12-
13- jobs :
14- build :
15- runs-on : ubuntu-latest
16- steps :
17- - name : Install SSH key
18- uses : shimataro/ssh-key-action@v2
19- with :
20- key : ${{ secrets.SSH_KEY }}
21- known_hosts : ${{ secrets.KNOWN_HOSTS }}
22- - name : Use Node.js 12.x
23- uses : actions/setup-node@v1
24- - uses : actions/checkout@v2
25- with :
26- ref : demo
27- - run : npm install
28- - run : npm run build:demo:prod
29- - run : rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
1+ #
2+ # name: (Obsolete) Deploy to demo (VM)
3+ #
4+ # on:
5+ # push:
6+ # branches:
7+ # - 'demo'
8+ # paths:
9+ # - 'src/**'
10+ # repository_dispatch:
11+ # types: deploy-to-demo
12+ #
13+ # jobs:
14+ # build:
15+ # runs-on: ubuntu-latest
16+ # steps:
17+ # - name: Install SSH key
18+ # uses: shimataro/ssh-key-action@v2
19+ # with:
20+ # key: ${{ secrets.SSH_KEY }}
21+ # known_hosts: ${{ secrets.KNOWN_HOSTS }}
22+ # - name: Use Node.js 12.x
23+ # uses: actions/setup-node@v1
24+ # - uses: actions/checkout@v2
25+ # with:
26+ # ref: demo
27+ # - run: npm install
28+ # - run: npm run build:demo:prod
29+ # - run: rsync -r --delete-after dist/. "${{ secrets.REMOTE_URL }}":"${{ secrets.ADDRESS }}"
You can’t perform that action at this time.
0 commit comments