diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ed2e40..6fd097f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,18 +1,19 @@ -name: Zola on GitHub Pages - -on: - push: - branches: - - main - +# On every push this script is executed +on: push +name: Build and deploy GH Pages jobs: build: - name: Publish site runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - - name: Checkout main - uses: actions/checkout@v4 - - name: Build and deploy - uses: shalzz/zola-deploy-action@v0.20.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: checkout + uses: actions/checkout@v4 + - name: build_and_deploy + uses: shalzz/zola-deploy-action@master + env: + # Target branch + PAGES_BRANCH: gh-pages + # Provide personal access token + #TOKEN: ${{ secrets.TOKEN }} + # Or if publishing to the same repo, use the automatic token + TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/blog/config.toml b/config.toml similarity index 100% rename from blog/config.toml rename to config.toml diff --git a/blog/content/_index.md b/content/_index.md similarity index 100% rename from blog/content/_index.md rename to content/_index.md diff --git a/blog/content/about_me/_index.md b/content/about_me/_index.md similarity index 100% rename from blog/content/about_me/_index.md rename to content/about_me/_index.md diff --git a/blog/content/blog/_index.md b/content/blog/_index.md similarity index 100% rename from blog/content/blog/_index.md rename to content/blog/_index.md diff --git a/blog/content/blog/first_blog/html_image.png b/content/blog/first_blog/html_image.png similarity index 100% rename from blog/content/blog/first_blog/html_image.png rename to content/blog/first_blog/html_image.png diff --git a/blog/content/blog/first_blog/index.md b/content/blog/first_blog/index.md similarity index 100% rename from blog/content/blog/first_blog/index.md rename to content/blog/first_blog/index.md diff --git a/blog/content/blog/first_blog/output.gif b/content/blog/first_blog/output.gif similarity index 100% rename from blog/content/blog/first_blog/output.gif rename to content/blog/first_blog/output.gif diff --git a/blog/content/blog/first_blog/website_image.png b/content/blog/first_blog/website_image.png similarity index 100% rename from blog/content/blog/first_blog/website_image.png rename to content/blog/first_blog/website_image.png diff --git a/blog/content/projects/_index.md b/content/projects/_index.md similarity index 100% rename from blog/content/projects/_index.md rename to content/projects/_index.md diff --git a/blog/content/projects/adventuring_animator/_index.md b/content/projects/adventuring_animator/_index.md similarity index 100% rename from blog/content/projects/adventuring_animator/_index.md rename to content/projects/adventuring_animator/_index.md diff --git a/blog/content/projects/amateur_linguist/_index.md b/content/projects/amateur_linguist/_index.md similarity index 100% rename from blog/content/projects/amateur_linguist/_index.md rename to content/projects/amateur_linguist/_index.md diff --git a/blog/content/projects/aspiring_graphics_programmer/_index.md b/content/projects/aspiring_graphics_programmer/_index.md similarity index 100% rename from blog/content/projects/aspiring_graphics_programmer/_index.md rename to content/projects/aspiring_graphics_programmer/_index.md diff --git a/blog/content/projects/music_enjoyer/_index.md b/content/projects/music_enjoyer/_index.md similarity index 100% rename from blog/content/projects/music_enjoyer/_index.md rename to content/projects/music_enjoyer/_index.md diff --git a/blog/content/projects/vaxandi_forritari/_index.md b/content/projects/vaxandi_forritari/_index.md similarity index 100% rename from blog/content/projects/vaxandi_forritari/_index.md rename to content/projects/vaxandi_forritari/_index.md diff --git a/blog/content/projects/wannabe_game_developer/_index.md b/content/projects/wannabe_game_developer/_index.md similarity index 100% rename from blog/content/projects/wannabe_game_developer/_index.md rename to content/projects/wannabe_game_developer/_index.md diff --git a/blog/sass/colours.scss b/sass/colours.scss similarity index 100% rename from blog/sass/colours.scss rename to sass/colours.scss diff --git a/blog/sass/style.scss b/sass/style.scss similarity index 100% rename from blog/sass/style.scss rename to sass/style.scss diff --git a/blog/static/main.js b/static/main.js similarity index 100% rename from blog/static/main.js rename to static/main.js diff --git a/blog/static/window.js b/static/window.js similarity index 100% rename from blog/static/window.js rename to static/window.js diff --git a/blog/static/wolf_head.obj b/static/wolf_head.obj similarity index 100% rename from blog/static/wolf_head.obj rename to static/wolf_head.obj diff --git a/blog/templates/adventuring_animator.html b/templates/adventuring_animator.html similarity index 100% rename from blog/templates/adventuring_animator.html rename to templates/adventuring_animator.html diff --git a/blog/templates/amateur_linguist.html b/templates/amateur_linguist.html similarity index 100% rename from blog/templates/amateur_linguist.html rename to templates/amateur_linguist.html diff --git a/blog/templates/aspiring_graphics_programmer.html b/templates/aspiring_graphics_programmer.html similarity index 100% rename from blog/templates/aspiring_graphics_programmer.html rename to templates/aspiring_graphics_programmer.html diff --git a/blog/templates/base.html b/templates/base.html similarity index 100% rename from blog/templates/base.html rename to templates/base.html diff --git a/blog/templates/blog-page.html b/templates/blog-page.html similarity index 100% rename from blog/templates/blog-page.html rename to templates/blog-page.html diff --git a/blog/templates/blog.html b/templates/blog.html similarity index 100% rename from blog/templates/blog.html rename to templates/blog.html diff --git a/blog/templates/index.html b/templates/index.html similarity index 100% rename from blog/templates/index.html rename to templates/index.html diff --git a/blog/templates/music_enjoyer.html b/templates/music_enjoyer.html similarity index 100% rename from blog/templates/music_enjoyer.html rename to templates/music_enjoyer.html diff --git a/blog/templates/projects-landing.html b/templates/projects-landing.html similarity index 100% rename from blog/templates/projects-landing.html rename to templates/projects-landing.html diff --git a/blog/templates/projects-page.html b/templates/projects-page.html similarity index 100% rename from blog/templates/projects-page.html rename to templates/projects-page.html diff --git a/blog/templates/projects.html b/templates/projects.html similarity index 100% rename from blog/templates/projects.html rename to templates/projects.html diff --git a/blog/templates/wannabe_game_developer.html b/templates/wannabe_game_developer.html similarity index 100% rename from blog/templates/wannabe_game_developer.html rename to templates/wannabe_game_developer.html