diff --git a/.github/workflows/hugo-deploy.yml b/.github/workflows/hugo-deploy.yml new file mode 100644 index 0000000..35bb7f0 --- /dev/null +++ b/.github/workflows/hugo-deploy.yml @@ -0,0 +1,60 @@ +name: Deploy Hugo site to Pages + +on: + push: + branches: + - main + - master + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.148.2 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 + + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 + with: + hugo-version: ${{ env.HUGO_VERSION }} + extended: true + + - name: Build with Hugo + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + run: hugo --gc --minify + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/static/CNAME b/static/CNAME new file mode 100644 index 0000000..bc66606 --- /dev/null +++ b/static/CNAME @@ -0,0 +1 @@ +hellollvm.org