Compare commits
2 Commits
dcd7c65ef1
...
b60d8de739
Author | SHA1 | Date | |
---|---|---|---|
b60d8de739 | |||
d69b0aa237 |
33
.github/workflows/publish.yaml
vendored
Normal file
33
.github/workflows/publish.yaml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: publish
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: "Clone submodules"
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
mkdir -p blog
|
||||||
|
- uses: peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: 'latest'
|
||||||
|
extended: true
|
||||||
|
- uses: purcell/setup-emacs@master
|
||||||
|
with:
|
||||||
|
version: 29.1
|
||||||
|
- name: "Export org to md"
|
||||||
|
run: emacs -Q --script .export.el
|
||||||
|
- name: "Hugo export"
|
||||||
|
run: hugo -d blog
|
||||||
|
- name: "Deploy to Cloudflare Pages"
|
||||||
|
uses: cloudflare/wrangler-action@v3
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_SECRET }}
|
||||||
|
accountId: ${{ secrets.ACCOUNT_ID }}
|
||||||
|
command: pages deploy blog/ --project-name=blog-phundrak-com
|
||||||
|
gitHubToken: ${{ secrets.TOKEN }}
|
@ -23,7 +23,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="post-content">{{ .Content }}</div>
|
<div class="post-content">{{ .Content }}</div>
|
||||||
<div class="post-footer">
|
<div class="post-footer">
|
||||||
<script defer src="https://comentario.phundrak.com/comentario.js"></script>
|
<script defer src="https://comments.phundrak.com/comentario.js"></script>
|
||||||
<comentario-comments></comentario-comments>
|
<comentario-comments></comentario-comments>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user