You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
921 B
34 lines
921 B
on: [push]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
deployments: write
|
|
name: Publish to Cloudflare Pages
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: 'latest'
|
|
# extended: true
|
|
|
|
- name: Generate language files
|
|
run: python3 setup-pages-for-supported-languages.py
|
|
|
|
- name: Build
|
|
run: hugo --minify
|
|
|
|
- name: Publish to Cloudflare Pages
|
|
uses: cloudflare/pages-action@v1
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: b2eab8b024e2fc0155a48c4fc7115e64
|
|
projectName: almalinux-next
|
|
directory: public
|
|
# Optional: Enable this if you want to have GitHub Deployments triggered
|
|
#gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
|