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:
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
|
||||
Reference in New Issue
Block a user