-
Notifications
You must be signed in to change notification settings - Fork 52
83 lines (69 loc) · 2.83 KB
/
build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Создание черновика релиза
on:
push:
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.number }}-release
cancel-in-progress: true
permissions:
contents: write
jobs:
export_to_designer:
name: Конвертация исходников в формат конфигуратора
uses: ./.github/workflows/step-export-xml.yml
with:
edt_version: 2023.1.2
artifact_name: designer-src
engine_only: true
secrets: inherit
build_artifacts:
name: Сборка артефактов
runs-on: ubuntu-latest
needs: export_to_designer
steps:
- name: Установка 1С:Предприятие 8.3.21.1895
uses: alkoleft/onec-setup-build-env-action@develop
with:
type: onec
onec_version: 8.3.21.1895
cache: true
env:
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }}
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }}
timeout-minutes: 10
- name: Загрузка исходников в формате конфигуратора
uses: actions/download-artifact@v4
with:
name: designer-src
- name: Распаковка исходников
run: |
mkdir export
cd export
7z x ../export.7z -y
- name: Создание пустой информационной базы
run: ibcmd infobase create --db-path=file-db
timeout-minutes: 5
- name: Импорт YAxUnit из исходников
run: ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export/yaxunit
timeout-minutes: 5
- name: Импорт Smoke из исходников
run: ibcmd infobase config import --db-path=file-db --extension=Smoke export/smoke
timeout-minutes: 5
- name: Сохрание расширения YAxUnit
run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT YAxUnit-${{ needs.export_to_designer.outputs.yaxunit_version }}.cfe
timeout-minutes: 5
- name: Сохрание расширения Smoke
run: ibcmd infobase config save --db-path=file-db --extension=Smoke Smoke-${{ needs.export_to_designer.outputs.smoke_version }}.cfe
timeout-minutes: 5
- name: Создание черновика релиза ${{ needs.export_to_designer.outputs.yaxunit_version }}
uses: softprops/action-gh-release@v2
if: ${{ success() }}
with:
draft: true
files: '*.cfe'
fail_on_unmatched_files: true
generate_release_notes: true
append_body: false
name: Версия ${{ needs.export_to_designer.outputs.yaxunit_version }}
token: ${{ secrets.GITHUB_TOKEN }}