From da40f6521c98ab369b4c4c848dbbb5a4f67175ed Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 22 Sep 2024 19:22:26 +0300 Subject: [PATCH] [CD] Deploy slides to GitHub Pages Deploy built PDF slides to GitHub Pages to make them accessible on the website --- .github/workflows/build.yml | 33 ++++++++++ 00-intro.tex => 00-intro/00-intro.tex | 0 00-intro.toc => 00-intro/00-intro.toc | 0 01-git.tex => 01-git/01-git.tex | 0 01-git.toc => 01-git/01-git.toc | 0 {images => 01-git/images}/git-flow.png | Bin {images => 01-git/images}/github-flow.png | Bin {images => 01-git/images}/in-case-of-fire.png | Bin 02-cmake.tex => 02-cmake/02-cmake.tex | 0 02-cmake.toc => 02-cmake/02-cmake.toc | 0 03-linux.tex => 03-linux/03-linux.tex | 0 03-linux.toc => 03-linux/03-linux.toc | 0 .../04-cpp-project-structure.tex | 0 .../04-cpp-project-structure.toc | 0 .../05-embedded-arm.tex | 0 .../05-embedded-arm.toc | 0 index.html | 57 ++++++++++++++++++ 17 files changed, 90 insertions(+) rename 00-intro.tex => 00-intro/00-intro.tex (100%) rename 00-intro.toc => 00-intro/00-intro.toc (100%) rename 01-git.tex => 01-git/01-git.tex (100%) rename 01-git.toc => 01-git/01-git.toc (100%) rename {images => 01-git/images}/git-flow.png (100%) rename {images => 01-git/images}/github-flow.png (100%) rename {images => 01-git/images}/in-case-of-fire.png (100%) rename 02-cmake.tex => 02-cmake/02-cmake.tex (100%) rename 02-cmake.toc => 02-cmake/02-cmake.toc (100%) rename 03-linux.tex => 03-linux/03-linux.tex (100%) rename 03-linux.toc => 03-linux/03-linux.toc (100%) rename 04-cpp-project-structure.tex => 04-cpp-project-structure/04-cpp-project-structure.tex (100%) rename 04-cpp-project-structure.toc => 04-cpp-project-structure/04-cpp-project-structure.toc (100%) rename 05-embedded-arm.tex => 05-embedded-arm/05-embedded-arm.tex (100%) rename 05-embedded-arm.toc => 05-embedded-arm/05-embedded-arm.toc (100%) create mode 100644 index.html diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e59597..af21d3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,11 @@ name: Build on: [push, pull_request] +permissions: + id-token: write + contents: read + pages: write + jobs: ubuntu-build: runs-on: ubuntu-latest @@ -20,6 +25,10 @@ jobs: with: name: pdf-linux path: '*.pdf' + - uses: actions/upload-artifact@v4 + with: + name: html + path: '*.html' macos-build: runs-on: macos-latest steps: @@ -35,3 +44,27 @@ jobs: with: name: pdf-macos path: '*.pdf' + deploy-to-github-pages: + needs: ubuntu-build + runs-on: ubuntu-latest + # if: github.ref == 'refs/heads/main' + steps: + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Download PDF artifact + uses: actions/download-artifact@v4 + with: + name: pdf-linux + path: ./slides + - name: Download PDF artifact + uses: actions/download-artifact@v4 + with: + name: html + path: ./ + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/00-intro.tex b/00-intro/00-intro.tex similarity index 100% rename from 00-intro.tex rename to 00-intro/00-intro.tex diff --git a/00-intro.toc b/00-intro/00-intro.toc similarity index 100% rename from 00-intro.toc rename to 00-intro/00-intro.toc diff --git a/01-git.tex b/01-git/01-git.tex similarity index 100% rename from 01-git.tex rename to 01-git/01-git.tex diff --git a/01-git.toc b/01-git/01-git.toc similarity index 100% rename from 01-git.toc rename to 01-git/01-git.toc diff --git a/images/git-flow.png b/01-git/images/git-flow.png similarity index 100% rename from images/git-flow.png rename to 01-git/images/git-flow.png diff --git a/images/github-flow.png b/01-git/images/github-flow.png similarity index 100% rename from images/github-flow.png rename to 01-git/images/github-flow.png diff --git a/images/in-case-of-fire.png b/01-git/images/in-case-of-fire.png similarity index 100% rename from images/in-case-of-fire.png rename to 01-git/images/in-case-of-fire.png diff --git a/02-cmake.tex b/02-cmake/02-cmake.tex similarity index 100% rename from 02-cmake.tex rename to 02-cmake/02-cmake.tex diff --git a/02-cmake.toc b/02-cmake/02-cmake.toc similarity index 100% rename from 02-cmake.toc rename to 02-cmake/02-cmake.toc diff --git a/03-linux.tex b/03-linux/03-linux.tex similarity index 100% rename from 03-linux.tex rename to 03-linux/03-linux.tex diff --git a/03-linux.toc b/03-linux/03-linux.toc similarity index 100% rename from 03-linux.toc rename to 03-linux/03-linux.toc diff --git a/04-cpp-project-structure.tex b/04-cpp-project-structure/04-cpp-project-structure.tex similarity index 100% rename from 04-cpp-project-structure.tex rename to 04-cpp-project-structure/04-cpp-project-structure.tex diff --git a/04-cpp-project-structure.toc b/04-cpp-project-structure/04-cpp-project-structure.toc similarity index 100% rename from 04-cpp-project-structure.toc rename to 04-cpp-project-structure/04-cpp-project-structure.toc diff --git a/05-embedded-arm.tex b/05-embedded-arm/05-embedded-arm.tex similarity index 100% rename from 05-embedded-arm.tex rename to 05-embedded-arm/05-embedded-arm.tex diff --git a/05-embedded-arm.toc b/05-embedded-arm/05-embedded-arm.toc similarity index 100% rename from 05-embedded-arm.toc rename to 05-embedded-arm/05-embedded-arm.toc diff --git a/index.html b/index.html new file mode 100644 index 0000000..431d438 --- /dev/null +++ b/index.html @@ -0,0 +1,57 @@ + + + + + + ITLab slides + + + +
+

ITLab slides

+
+ + +