Skip to content

Commit fdb3a6a

Browse files
vkutuevAfoninaOlga
andauthored
Переход на AsciiDoc (#3)
* changed Markdown to AsciiDoc * fixed imagesdir attribute in Chapter1 * added Makefile and Action to build pdf * updated README with information about building pdf * fixed style in workflow file * added workflow to release on tag v* * fixed artifact uploading to release * fixed artifacts names in workflows * added workflow_dispatch trigger for build workflow * fixed paths for building artifacts * fixed release asset filename * fixed escaping in Makefile --------- Co-authored-by: AfoninaOlga <o.aphonina@gmail.com>
1 parent 952d9b2 commit fdb3a6a

18 files changed

+1412
-891
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container: asciidoctor/docker-asciidoctor
12+
env:
13+
RESULT_NAME: 'Инструментарий_и_компиляторные_оптимизации_для_RISC-V_(LFD113x)_RU'
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Build pdf
17+
run: make RESULT_PDF='${{ env.RESULT_NAME }}.pdf'
18+
- uses: actions/upload-artifact@v3
19+
with:
20+
name: ${{ env.RESULT_NAME }}
21+
path: ${{ env.RESULT_NAME }}.pdf
22+
if-no-files-found: error
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
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}}'
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Pull Container
20+
run: |
21+
docker pull asciidoctor/docker-asciidoctor:latest
22+
- name: Build pdf
23+
run: |
24+
docker run \
25+
--rm -v '${{ github.workspace }}':/documents \
26+
asciidoctor/docker-asciidoctor \
27+
make RESULT_PDF='${{ env.RESULT_PDF }}'
28+
- name: Release
29+
run: |
30+
gh release create ${{ github.ref_name}} -t '${{ env.NAME }}' '${{ env.RESULT_PDF }}'#'${{ env.ASSET_LABEL }}'
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NAME: 'Перевод курса "RISC-V Toolchain and Compiler Optimization Techniques" (LFD113x) ${{ github.ref_name}}'

Chapters/Chapter1.adoc

Lines changed: 286 additions & 0 deletions
Large diffs are not rendered by default.

Chapters/Chapter1.md

Lines changed: 0 additions & 203 deletions
This file was deleted.

Chapters/Chapter2.adoc

Lines changed: 592 additions & 0 deletions
Large diffs are not rendered by default.

Chapters/Chapter2.md

Lines changed: 0 additions & 388 deletions
This file was deleted.

Chapters/Chapter3.adoc

Lines changed: 228 additions & 0 deletions
Large diffs are not rendered by default.

Chapters/Chapter3.md

Lines changed: 0 additions & 159 deletions
This file was deleted.

Chapters/Chapter4.adoc

Lines changed: 151 additions & 0 deletions
Large diffs are not rendered by default.

Chapters/Chapter4.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)