From e53242a2a73e8f387e8294926bc6a8953b66858e Mon Sep 17 00:00:00 2001 From: jimmyff Date: Wed, 1 Feb 2023 18:02:10 +0000 Subject: [PATCH] Adding github deploy action --- .github/workflows/deploy.yml | 19 +++++++++++++++++++ .gitignore | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 .gitignore diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3a61c11 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +# On every push this script is executed +on: push +name: Build and deploy GH Pages +jobs: + build: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: checkout + uses: actions/checkout@v3.0.0 + - name: build_and_deploy + uses: shalzz/zola-deploy-action@v0.16.1 + 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/.gitignore b/.gitignore new file mode 100644 index 0000000..484e03f --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# Zola +public/ +static/processed_images/ \ No newline at end of file