Skip to content

Commit ebd7e4f

Browse files
authored
Смена структуры репозитория (#6)
* Moved files for LFD113x to own folder * Removed common info from README of the LFD113x * Added scripts for building multiple courses * Added README for the repository * Fixed path to script in release workflow * Fixed tag parsing in release scripts
1 parent 5e355b6 commit ebd7e4f

File tree

19 files changed

+371
-22
lines changed

19 files changed

+371
-22
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
container: asciidoctor/docker-asciidoctor
1212
env:
13-
RESULT_NAME: 'Инструментарий_и_компиляторные_оптимизации_для_RISC-V_(LFD113x)_RU'
13+
RESULT_NAME: 'Переводы курсов'
14+
BUILD_DIRECTORY: 'build'
1415
steps:
1516
- uses: actions/checkout@v3
16-
- name: Build pdf
17-
run: make RESULT_PDF='${{ env.RESULT_NAME }}.pdf'
17+
- name: Build all courses
18+
run: ./scripts/build_all.sh -o '${{ env.BUILD_DIRECTORY }}'
1819
- uses: actions/upload-artifact@v3
1920
with:
2021
name: ${{ env.RESULT_NAME }}
21-
path: ${{ env.RESULT_NAME }}.pdf
22+
path: ${{ env.BUILD_DIRECTORY }}
2223
if-no-files-found: error

.github/workflows/release_on_tag.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
env:
15-
RESULT_PDF: 'RISC-V_Toolchain_and_Compiler_Optimization_Techniques_LFD113x_RU_${{ github.ref_name}}.pdf'
16-
ASSET_LABEL: 'Инструментарий и компиляторные оптимизации для RISC-V (LFD113x) RU ${{ github.ref_name}}'
15+
RELEASE_TITLE: 'Перевод курсов ${{ github.ref_name}}'
16+
BUILD_DIRECTORY: 'build'
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Pull Container
2020
run: |
2121
docker pull asciidoctor/docker-asciidoctor:latest
22-
- name: Build pdf
22+
- name: Build all courses
2323
run: |
2424
docker run \
2525
--rm -v '${{ github.workspace }}':/documents \
2626
asciidoctor/docker-asciidoctor \
27-
make RESULT_PDF='${{ env.RESULT_PDF }}'
28-
- name: Release
27+
./scripts/build_all.sh -o '${{ env.BUILD_DIRECTORY }}' -s '${{ github.ref_name}}'
28+
- name: Release all courses assets
2929
run: |
30-
gh release create ${{ github.ref_name}} -t '${{ env.NAME }}' '${{ env.RESULT_PDF }}'#'${{ env.ASSET_LABEL }}' \
31-
|| gh release upload --clobber ${{ github.ref_name}} '${{ env.RESULT_PDF }}'#'${{ env.ASSET_LABEL }}'
30+
./scripts/release_all.sh '${{ github.ref_name}}' \
31+
-o '${{ env.BUILD_DIRECTORY }}' \
32+
-s '${{ github.ref_name}}' \
33+
'${{ env.RELEASE_TITLE }}'
3234
env:
3335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
NAME: 'Перевод курса "RISC-V Toolchain and Compiler Optimization Techniques" (LFD113x) ${{ github.ref_name}}'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.obsidian
1+
build
2+
*/*.pdf

Courses.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LFD113x-RU,RISC-V_Toolchain_and_Compiler_Optimization_Techniques_LFD113x_RU,Инструментарий и компиляторные оптимизации для RISC-V (LFD113x) RU
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)