28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
name: Production-Deploy
|
|
on:
|
|
push:
|
|
tags:
|
|
- v1.**
|
|
|
|
jobs:
|
|
Build-and-deploy-Production:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
- run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
- uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '7.0.x'
|
|
- run: dotnet publish ${{ gitea.workspace }}/csharp/App/Backend/Backend.csproj -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=false
|
|
- uses: actions/setup-node@v3
|
|
- run: |
|
|
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 install
|
|
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
|
- name: copy everything to Prod
|
|
run: |
|
|
cd ${{ gitea.workspace }}
|
|
./.gitea/Prod-deploy.sh
|
|
- run: echo " This job's status is ${{ job.status }}." |