Skip to content

prod mode flag

prod mode flag #56

Workflow file for this run

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 }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
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