2024-03-12 10:39:01 +03:00
|
|
|
name: Gitea Actions
|
2024-03-12 10:17:09 +03:00
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions ??
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2024-03-12 10:58:13 +03:00
|
|
|
runs-on: ubuntu
|
2024-03-12 10:17:09 +03:00
|
|
|
steps:
|
2024-03-12 10:57:07 +03:00
|
|
|
- run: cd /home/resume/
|
2024-03-12 10:39:01 +03:00
|
|
|
- run: echo "Stopping gitea service..."
|
2024-03-12 11:01:03 +03:00
|
|
|
- run: systemctl stop resume
|
2024-03-12 10:39:01 +03:00
|
|
|
- run: echo "Gitea service stopped"
|
|
|
|
- run: echo "Pulling repo..."
|
2024-03-12 10:17:09 +03:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2024-03-12 10:39:01 +03:00
|
|
|
- run: echo "Repo pulled"
|
|
|
|
- run: echo "Updating npm dependencies..."
|
|
|
|
- run: npm i
|
|
|
|
- run: echo "NPM dependencies updated"
|
|
|
|
- run: echo "Updating composer dependencies..."
|
2024-03-12 11:55:11 +03:00
|
|
|
- run: export COMPOSER_ALLOW_SUPERUSER=1; composer show; composer install;
|
2024-03-12 10:39:01 +03:00
|
|
|
- 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"
|