www.ThumeIT/.gitea/workflows/deploy_to_prod.yaml
Thomas Faour 4d3c87b796
All checks were successful
Deploy to stage / deploy-to-stage (push) Successful in 4s
Deploy to prod / deploy-to-prod (push) Successful in 4s
Maybe I tagged too late?
2025-04-01 04:19:14 +00:00

26 lines
809 B
YAML

name: Deploy to prod
run-name: ${{ gitea.actor }} is deploying ThumeIT to prod 🚀
on:
push:
tags:
- '*'
jobs:
deploy-to-prod:
runs-on: prd_runner
container:
volumes:
- /var/www/html:/www/html
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v4
- 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."
- run: pwd
- run: ls /
- name: Copy the files
run: |
cp -r ./html/* /www/html
- run: ls /www/html
- run: echo "🍏 This job's status is ${{ job.status }}. Woohoo!"