From 924ea4ba8e3b5bede5c5790c0bc5d0fe6889bdf2 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 23 Oct 2023 14:25:28 +0200 Subject: [PATCH] tweaking workflows --- .gitea/workflows/prod-deploy.yaml | 8 +++----- .gitea/workflows/stage-deploy.yaml | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/prod-deploy.yaml b/.gitea/workflows/prod-deploy.yaml index bf6b2beda..251d2ba23 100644 --- a/.gitea/workflows/prod-deploy.yaml +++ b/.gitea/workflows/prod-deploy.yaml @@ -11,12 +11,10 @@ jobs: - 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 + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + - uses: actions/setup-node@v3 - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." - - name: Install build requirements - run: | - sudo apt install dotnet7 - sudo apt install npm - name: Build backend run: | dotnet publish ${{ gitea.workspace }}/csharp/App/Backend/Backend.csproj -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=false diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index dd7d6dd40..f6217c3d1 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -11,12 +11,10 @@ jobs: - 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 + - uses: actions/checkout@v3 + - uses: actions/setup-dotnet@v3 + - uses: actions/setup-node@v3 - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner." - - name: Install build requirements - run: | - sudo apt install dotnet7 - sudo apt install npm - name: Build backend run: | dotnet publish ${{ gitea.workspace }}/csharp/App/Backend/Backend.csproj -c Release -r linux-x64 --self-contained true -p:PublishTrimmed=false