-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.09 KB
/
prod.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
36
37
38
39
40
41
42
43
44
45
46
47
name: jmuzina.io
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
on:
push:
branches: ['main']
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Install Angular dependencies
run: npm ci
- name: Build Angular
run: npm run build:prod
- name: Generate sourcemaps
run: npm run sentry:sourcemaps
- name: Archive build artifact
uses: actions/upload-artifact@main
with:
name: portfolio
path: ./dist/portfolio
- name: Deploy build files
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
password: ${{ secrets.DEPLOY_PASSWORD }}
port: ${{ secrets.DEPLOY_PORT }}
source: ./dist/portfolio
target: ${{ secrets.DEPLOY_PATH }}/production
tar_tmp_path: /home/${{ secrets.DEPLOY_USERNAME }}/tmp/production
rm: true
timeout: 60s