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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user