New-site/.gitea/workflows/gitea-actions.yml
p.belezov 314f49f0c9
Some checks failed
Gitea Actions / Explore-Gitea-Actions (push) Failing after 1s
Санитары уже едут
2024-03-12 17:42:45 +08:00

28 lines
1.0 KiB
YAML

name: Gitea Actions
run-name: ${{ gitea.actor }} is testing out Gitea Actions ??
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu
steps:
- run: cat {{ vars.ENV_PROD }} > .env
- run: echo "Stopping gitea service..."
- run: systemctl stop resume
- run: echo "Gitea service stopped"
- run: echo "Pulling repo..."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "Repo pulled"
- run: echo "Updating npm dependencies..."
- run: pwd; node -v; npm i --progress=false;
- run: echo "NPM dependencies updated"
- run: echo "Updating composer dependencies..."
- run: pwd; export COMPOSER_ALLOW_SUPERUSER=1; composer show; composer update;
- run: echo "Composer dependencies updated"
- run: echo "Building frontend..."
- run: pwd; npm run build;
- run: echo "Frontend built"
- run: echo "Starting Gitea service"
- run: systemctl start resume
- run: echo "Gitea service started"