From e424f959cd1b69a33eb357339b096905c71028c4 Mon Sep 17 00:00:00 2001 From: Magnus Smari Smarason Date: Sat, 17 May 2025 19:51:08 +0000 Subject: [PATCH] Update Gitea Actions workflow with Node v20 --- .gitea/workflows/deploy.yaml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..0133f07 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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/ \ No newline at end of file