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