[READ-ONLY] Mirror of https://github.com/flo-bit/blog-template. minimalistic astro blog template
flo-bit.dev/blog-template/
astro
blog
template
685 B
34 lines
1name: Deploy to GitHub Pages
2
3on:
4 push:
5 branches: [main]
6 workflow_dispatch:
7 schedule:
8 - cron: '0 */12 * * *' # every 12 hours
9
10permissions:
11 contents: read
12 pages: write
13 id-token: write
14
15jobs:
16 build:
17 runs-on: ubuntu-latest
18 steps:
19 - name: Checkout your repository using git
20 uses: actions/checkout@v4
21
22 - name: Install, build, and upload your site
23 uses: withastro/action@v3
24
25 deploy:
26 needs: build
27 runs-on: ubuntu-latest
28 environment:
29 name: github-pages
30 url: ${{ steps.deployment.outputs.page_url }}
31 steps:
32 - name: Deploy to GitHub Pages
33 id: deployment
34 uses: actions/deploy-pages@v4