Skip to content

Commit

Permalink
Add deploy script.
Browse files Browse the repository at this point in the history
  • Loading branch information
aterenin committed Dec 8, 2023
1 parent 60428c8 commit 2ea424b
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
papers.avt.im
5 changes: 4 additions & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
+++
render = false
title = "Redirect"
template = "redirect.html"
[extra]
redirect_to = "https://avt.im/"
+++
Empty file added templates/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions themes/academic-paper
Submodule academic-paper added at 9ed7ea

0 comments on commit 2ea424b

Please sign in to comment.