Skip to content

Fixed release workflow #8

Fixed release workflow

Fixed release workflow #8

Workflow file for this run

name: 'Release'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build Tech-Radar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install Dependencies
run: npm install
- name: Build Tech-Radar
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: tech-radar
path: public
deploy:
needs: build
name: Deploy Tech-Radar
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: tech-radar
path: tech-radar
- name: Deploy
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -avzr --delete
path: tech-radar/
remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}