Update Gitea Actions workflow with Node v20
Some checks failed
Build and Deploy Arctic Species Portal / build-and-deploy (push) Failing after 2m46s
Some checks failed
Build and Deploy Arctic Species Portal / build-and-deploy (push) Failing after 2m46s
This commit is contained in:
39
.gitea/workflows/deploy.yaml
Normal file
39
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
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/
|
Reference in New Issue
Block a user