feat: add more docs. #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy to Azure | |
on: | |
push: | |
branches: [ azure ] | |
pull_request: | |
branches: [ azure ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Azure | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run build task | |
run: npm run build --if-present | |
- name: Deploy to Server | |
uses: easingthemes/[email protected] | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
ARGS: "-avzr --delete" | |
SOURCE: "build/" | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
TARGET: ${{ secrets.REMOTE_TARGET }} |