From c172fb090d66d88d8739dbdb0e85edface0667c2 Mon Sep 17 00:00:00 2001 From: Zulius Roolf <36889707+ZuliusRoolf@users.noreply.github.com> Date: Mon, 15 Jul 2024 10:30:44 +0200 Subject: [PATCH] changed back to deploy static content using github actions --- .github/workflows/pages.yml | 25 +++++++++++-------------- .gitignore | 1 + JOURNAL.md | 11 +++++++++++ index.html => website/index.html | 0 4 files changed, 23 insertions(+), 14 deletions(-) rename index.html => website/index.html (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 46fb0d0..a430dc5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,4 +1,5 @@ -name: Deploy site to Pages +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages on: # Runs on pushes targeting the default branch @@ -21,26 +22,22 @@ concurrency: cancel-in-progress: false jobs: - # Build job - build: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - name: website - path: ./website - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: + # Upload entire repository + path: './website' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index e69de29..600d2d3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +.vscode \ No newline at end of file diff --git a/JOURNAL.md b/JOURNAL.md index 86828e9..914cb07 100644 --- a/JOURNAL.md +++ b/JOURNAL.md @@ -11,6 +11,8 @@ This is a quick journal on how I develop this website. It will be used for docum - [`` Element Uses](#head-element-uses) - [14 July](#14-july) - [Playin around](#playin-around) + - [15 July](#15-july) + - [Today's ToDo List](#todays-todo-list) ## 13 July @@ -64,3 +66,12 @@ Open Graph tags (prefixed with og:) are used by social media platforms to genera I have added the index.html file that I played around with yestrerday and added a favicon of my logo and a styles.css to play around with today. The ZuliusRoolfLogo.svg is my own work with the use of my own Font that I plan to release in the future. While I'm commiting my work so far, I wanted to take the opportunity and see if I can update to GitHub Pages along side with it. According to this [StackOverflow post](https://stackoverflow.com/a/56911185) I'm supposed to add a file named .nojekyll for a website that does not use Jekyll. Not sure if it actually matters. + +## 15 July + +### Today's ToDo List + +- [ ] Setup github actions to work with static builds +- [ ] Reach step 1.4 in the website curriculum +- [ ] Reach step 1.16 in the website curriculum +- [ ] Get answers on how to use markdown to then convert into html diff --git a/index.html b/website/index.html similarity index 100% rename from index.html rename to website/index.html