Skip to content

Commit

Permalink
#23 Remove redundant pipeline section
Browse files Browse the repository at this point in the history
The `sed` command is not working as expected because of some permission issues.
This commit removes this section from the pipeline, because another solution is
implemented which does not require this step.
  • Loading branch information
michalspano committed Aug 22, 2024
1 parent bd2b7cb commit c5a58f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
with:
source: ./
destination: ./_site
- name: Modify Permissions
run: chmod -R u+rwX,go+rX,go-w ./_site
- name: Insert JS snippet
run: |
find ./_site -name '*.html' -exec sed -i 's|</body>|<script>document.addEventListener("DOMContentLoaded", function() {const links = document.querySelectorAll("a[href^=\\"./exams/\\"]");links.forEach(link => {const code = link.getAttribute("href").slice(8);link.href = `https://github.com/skipgu/past-exams/tree/main/exams/${code}`;});});</script>\n</body>|g' {} +
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

Expand Down

0 comments on commit c5a58f3

Please sign in to comment.