2024-03-01 04:59:24 +03:00
|
|
|
name: Gitea Actions Demo
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
2024-03-01 07:44:35 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-03-01 04:59:24 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-03-01 08:21:46 +03:00
|
|
|
Deploy-koptilnya.xyz:
|
2024-03-01 05:37:25 +03:00
|
|
|
runs-on: main
|
2024-03-01 04:59:24 +03:00
|
|
|
steps:
|
2024-03-01 07:27:00 +03:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v4
|
2024-03-01 07:44:35 +03:00
|
|
|
- name: Build app
|
2024-03-01 04:59:24 +03:00
|
|
|
run: |
|
2024-03-01 07:44:35 +03:00
|
|
|
yarn
|
|
|
|
yarn build
|
2024-03-01 07:56:41 +03:00
|
|
|
- run: ls -la .output
|
2024-03-01 07:52:38 +03:00
|
|
|
- name: Move to Nginx folder
|
2024-03-01 08:21:46 +03:00
|
|
|
run: cp -r .output/. /var/www/koptilnya.xyz
|
|
|
|
- name: Restart systemd service
|
|
|
|
run: systemctl restart koptilnya.xyz
|
2024-03-01 04:59:24 +03:00
|
|
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|