Skip to content

Update dependency concurrently to v9 #479

Update dependency concurrently to v9

Update dependency concurrently to v9 #479

Workflow file for this run

name: Deploy
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Build
run: |
npm install
npm run build
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
deploy-test:
name: Deploy to Test
needs: build
runs-on: ubuntu-latest
environment:
name: Test
url: https://david-test.eadie.net
steps:
- name: Download build
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Upload
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./dist/
server-dir: ./
deploy-prod:
if: github.ref == 'refs/heads/main'
name: Deploy to Production
needs: deploy-test
runs-on: ubuntu-latest
environment:
name: Production
url: https://david.eadie.net
steps:
- name: Download build
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Upload
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./dist/
server-dir: ./