
Some checks failed
Build and Deploy Arctic Species Portal / build-and-deploy (push) Failing after 2m46s
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Build and Deploy Arctic Species Portal
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Or your primary branch, e.g., master
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest # This will use one of the labels your runner supports
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20' # Or your preferred/project's Node.js version
|
|
|
|
- name: Install dependencies
|
|
run: npm install # If you use yarn, change this to 'yarn install'
|
|
|
|
- name: Build project
|
|
run: npm run build # This command should be defined in your package.json scripts
|
|
|
|
- name: List output files
|
|
run: |
|
|
echo "Build completed. Output files in dist/:"
|
|
ls -R dist
|
|
|
|
- name: Deploy (Placeholder)
|
|
run: |
|
|
echo "Deployment step: Replace this with your actual deployment commands."
|
|
echo "For example, copying files from 'dist/' to your server."
|
|
# Example for copying to a server (requires SSH setup):
|
|
# scp -r dist/* user@yourserver:/var/www/your-project-path/
|
|
# Or using rsync:
|
|
# rsync -avz dist/ user@yourserver:/var/www/your-project-path/ |