From 09cee960dd709004f3e205bdbbc004dad2a44c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Sat, 23 Nov 2024 21:25:38 +0100 Subject: [PATCH] . --- .github/workflows/build.yml | 63 +++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d7abb4..4f17757 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,31 +6,32 @@ on: branches: [ ci-cd ] workflow_dispatch: jobs: - build-frontend: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@master - with: - node-version: 20 - - name: Install Angular CLI - run: yarn global add @angular/cli - - name: Configure ng to use yarn - run: ng config --global cli.packageManager yarn - - name: Yarn install - working-directory: Frontend - run: yarn install - - name: Build Angular - working-directory: Frontend - run: ng build --configuration=production - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: frontend - path: Frontend/dist + #build-frontend: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Use Node.js ${{ matrix.node-version }} + # uses: actions/setup-node@master + # with: + # node-version: 20 + # - name: Install Angular CLI + # run: yarn global add @angular/cli + # - name: Configure ng to use yarn + # run: ng config --global cli.packageManager yarn + # - name: Yarn install + # working-directory: Frontend + # run: yarn install + # - name: Build Angular + # working-directory: Frontend + # run: ng build --configuration=production + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: frontend + # path: Frontend/dist build-backend: runs-on: ubuntu-latest + environment: morska steps: - uses: actions/checkout@v4 - name: Setup dotnet 6 @@ -45,10 +46,18 @@ jobs: run: | dotnet build --configuration Release --no-restore dotnet publish --configuration Release --framework net8.0 --runtime linux-x64 --self-contained false --output ../build_webapi - - name: Upload artifact - uses: actions/upload-artifact@v4 + - name: Compress files + run: | + tar -czvf DiunaBI-webAPI.tar.gz -C ./ + #- name: Copy artifacts into server + - name: Upload + uses: appleboy/scp-action@v0.1.7 with: - name: webapi - path: build_webapi + host: "crm.bim-it.pl" + username: "mz" + key: ${{ secrets.SSH_KEY }} + port: 22 + source: "*" + target: "/home/mz/github"