From 8fe58dd8faf418d338b72ad229741cdfa67e9e1c Mon Sep 17 00:00:00 2001
From: "p.belezov"
Date: Tue, 12 Mar 2024 15:39:01 +0800
Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?=
=?UTF-8?q?=D0=BB=20=D1=81=D0=BE=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D0=BC=D0=BE?=
=?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D0=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.gitea/workflows/gitea-actions.yml | 29 +++++++++++++++++++----------
1 file changed, 19 insertions(+), 10 deletions(-)
diff --git a/.gitea/workflows/gitea-actions.yml b/.gitea/workflows/gitea-actions.yml
index 6aea9ff..2497b32 100644
--- a/.gitea/workflows/gitea-actions.yml
+++ b/.gitea/workflows/gitea-actions.yml
@@ -1,4 +1,4 @@
-name: Gitea Actions Demo
+name: Gitea Actions
run-name: ${{ gitea.actor }} is testing out Gitea Actions ??
on: [push]
@@ -6,14 +6,23 @@ jobs:
Explore-Gitea-Actions:
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 }}."
+ - run: cd /home/resume
+ - run: echo "Stopping gitea service..."
+ - run: systemctl stop gitea
+ - run: echo "Gitea service stopped"
+ - run: echo "Pulling repo..."
- name: Check out repository code
uses: actions/checkout@v3
- - run: echo "?? The ${{ gitea.repository }} repository has been cloned to the runner."
- - run: echo "??? The workflow is now ready to test your code on the runner."
- - name: List files in the repository
- run: |
- ls ${{ gitea.workspace }}
- - run: echo "?? This job's status is ${{ job.status }}."
\ No newline at end of file
+ - run: echo "Repo pulled"
+ - run: echo "Updating npm dependencies..."
+ - run: npm i
+ - run: echo "NPM dependencies updated"
+ - run: echo "Updating composer dependencies..."
+ - run: composer install
+ - run: echo "Composer dependencies updated"
+ - run: echo "Building frontend..."
+ - run: npm run build
+ - run: echo "Frontend built"
+ - run: echo "Starting Gitea service"
+ - run: systemctl start gitea
+ - run: echo "Gitea service started"
\ No newline at end of file