Update orga.md #64
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: Deploy to dev environment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: 'yarn' | |
- name: Install Node dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build static page | |
run: yarn run build | |
- name: Deploy files via SFTP | |
uses: pressidium/lftp-mirror-action@v1 | |
with: | |
host: ${{ secrets.SFTP_HOST }} | |
user: ${{ secrets.SFTP_USER }} | |
pass: ${{ secrets.SFTP_PASSWORD }} | |
settings: 'sftp:auto-confirm=yes' | |
localDir: 'dist' | |
remoteDir: '/' |