Files
TriggerFrontend/.gitea/workflows/deploy_to_prod.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 31: cannot unmarshal !!seq into model.Job
Sean Edmunds 881683dfe6
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Added step
2026-02-06 10:56:10 -06:00

36 lines
1.1 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: https://gitea.com/ScMi1/checkout@v1
with:
repository: 'smedmunds/TriggerFrontend'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
deploy:
- name: Deploy to production
run: echo "Deploying to production..."
run: ls ${{ gitea.workspace }}
run: cp -r ${{ gitea.workspace }}/dist/ /var/www/html/
run: ls /var/www/html