From b3eaf03627318033c6c3e55765da41224f4e179d Mon Sep 17 00:00:00 2001 From: EremeevRA Date: Tue, 24 Mar 2026 13:21:48 +0300 Subject: [PATCH] Add manual archiving workflow to Gitea CI - Introduced a new workflow for manual archiving, allowing users to trigger the creation of archives for the api and web directories. - The workflow includes steps for code checkout and artifact upload with a retention policy of 7 days. --- .gitea/workflows/archive.yml | 20 ++++++++++++++++++++ .gitea/workflows/ci.yml | 30 +++++++++++++++--------------- 2 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/archive.yml diff --git a/.gitea/workflows/archive.yml b/.gitea/workflows/archive.yml new file mode 100644 index 0000000..4dd8996 --- /dev/null +++ b/.gitea/workflows/archive.yml @@ -0,0 +1,20 @@ +name: Ручная архивация + +on: + workflow_dispatch: # только ручной запуск + +jobs: + create-archives: + runs-on: ubuntu-latest + steps: + - name: Проверка кода + uses: actions/checkout@v4 + + - name: Загрузка артифакта + uses: actions/upload-artifact@v3 + with: + name: build-artifacts-${{ github.run_id }} + path: | + api/ + web/ + retention-days: 7 \ No newline at end of file diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8025980..3f52f64 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -54,22 +54,22 @@ jobs: cd web npm run build - create-archives: - needs: [test-backend, test-frontend] - runs-on: ubuntu-latest - if: github.event_name == 'workflow_dispatch' && always() - steps: - - name: Проверка кода - uses: actions/checkout@v4 + # create-archives: + # needs: [test-backend, test-frontend] + # runs-on: ubuntu-latest + # if: github.event_name == 'workflow_dispatch' && always() + # steps: + # - name: Проверка кода + # uses: actions/checkout@v4 - - name: Загрузка артифакта - uses: actions/upload-artifact@v3 - with: - name: build-artifacts-${{ github.run_id }} - path: | - api/ - web/ - retention-days: 7 + # - name: Загрузка артифакта + # uses: actions/upload-artifact@v3 + # with: + # name: build-artifacts-${{ github.run_id }} + # path: | + # api/ + # web/ + # retention-days: 7 # Явный статус для PR pr-status: