From 04e56855c5df7af38ea317ccdb2acae698daf267 Mon Sep 17 00:00:00 2001 From: Bethuel Date: Thu, 4 Jan 2024 01:13:39 +0300 Subject: [PATCH 1/3] Create gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 53 +++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/jekyll-gh-pages.yml diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml new file mode 100644 index 0000000..4b84556 --- /dev/null +++ b/.github/workflows/jekyll-gh-pages.yml @@ -0,0 +1,53 @@ +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll with GitHub Pages dependencies preinstalled + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Converts Markdown to HTML + uses: jaywcjlove/markdown-to-html-cli@main + with: + source: README.md + output: ./_site/index.html + github-corners: https://github.com/bethropolis/myia + favicon: data:image/svg+xml,🌐 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 69388859e5177b78b1ab719b5ff23d95005a0f3f Mon Sep 17 00:00:00 2001 From: Bethuel Date: Thu, 4 Jan 2024 01:16:37 +0300 Subject: [PATCH 2/3] Update jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 4b84556..ffbb3cd 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -30,11 +30,13 @@ jobs: uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v4 + - name: Create Directory + run: mkdir _site - name: Converts Markdown to HTML uses: jaywcjlove/markdown-to-html-cli@main with: source: README.md - output: ./_site/index.html + output: _site/index.html github-corners: https://github.com/bethropolis/myia favicon: data:image/svg+xml,🌐 - name: Upload artifact From 1d0552002408c3e6fa71f063190cc37ac17a90e6 Mon Sep 17 00:00:00 2001 From: Bethuel Date: Thu, 4 Jan 2024 01:22:21 +0300 Subject: [PATCH 3/3] Update jekyll-gh-pages.yml --- .github/workflows/jekyll-gh-pages.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index ffbb3cd..8898a32 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -32,6 +32,8 @@ jobs: uses: actions/configure-pages@v4 - name: Create Directory run: mkdir _site + - name: move asserts Directory + run: mv .githubasserts _site - name: Converts Markdown to HTML uses: jaywcjlove/markdown-to-html-cli@main with: