diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..b011c85 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,47 @@ +name: Build and Deploy Website + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Download Zola + run: curl -s -L "https://github.com/getzola/zola/releases/download/v0.17.2/zola-v0.17.2-x86_64-unknown-linux-gnu.tar.gz" | tar xzf - -C /usr/local/bin + - name: Verify Zola binary + run: echo "b62c19a1e104a0526a48a1f29c05ba90b9a14fe7a17ef6a7978d9610886cc783 /usr/local/bin/zola" | shasum -a 256 -b -c --strict + - name: Build website + run: zola build + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./public + name: github-pages + retention-days: 1 + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 082ee7d..ae35e79 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "themes/academic-paper"] path = themes/academic-paper - url = https://github.com/aterenin/academic-paper + url = https://github.com/aterenin/academic-paper.git diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..ad9db67 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +papers.avt.im \ No newline at end of file diff --git a/content/_index.md b/content/_index.md index a8102f1..c5b544e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,6 @@ +++ -render = false +title = "Redirect" +template = "redirect.html" +[extra] +redirect_to = "https://avt.im/" +++ \ No newline at end of file diff --git a/templates/.gitkeep b/templates/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/themes/academic-paper b/themes/academic-paper new file mode 160000 index 0000000..9ed7ea2 --- /dev/null +++ b/themes/academic-paper @@ -0,0 +1 @@ +Subproject commit 9ed7ea258fe7197afd5292b4b5172af5e9417e5f