Refactor CI workflow to localize job names in Russian and remove deprecated multistep and test workflows. Update artifact upload step to ensure clarity in job descriptions. #6
20
.gitea/workflows/archive.yml
Normal file
20
.gitea/workflows/archive.yml
Normal file
@@ -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
|
||||||
@@ -54,22 +54,22 @@ jobs:
|
|||||||
cd web
|
cd web
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
create-archives:
|
# create-archives:
|
||||||
needs: [test-backend, test-frontend]
|
# needs: [test-backend, test-frontend]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'workflow_dispatch' && always()
|
# if: github.event_name == 'workflow_dispatch' && always()
|
||||||
steps:
|
# steps:
|
||||||
- name: Проверка кода
|
# - name: Проверка кода
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Загрузка артифакта
|
# - name: Загрузка артифакта
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: build-artifacts-${{ github.run_id }}
|
# name: build-artifacts-${{ github.run_id }}
|
||||||
path: |
|
# path: |
|
||||||
api/
|
# api/
|
||||||
web/
|
# web/
|
||||||
retention-days: 7
|
# retention-days: 7
|
||||||
|
|
||||||
# Явный статус для PR
|
# Явный статус для PR
|
||||||
pr-status:
|
pr-status:
|
||||||
|
|||||||
Reference in New Issue
Block a user