mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
chore: update GitHub workflow
This commit is contained in:
parent
f7731a9083
commit
66510bafd6
1 changed files with 23 additions and 7 deletions
30
.github/workflows/publish-pages.yml
vendored
30
.github/workflows/publish-pages.yml
vendored
|
|
@ -7,12 +7,28 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Publish site
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v3.0.0
|
with:
|
||||||
- name: Build and deploy
|
submodules: true
|
||||||
uses: shalzz/zola-deploy-action@master
|
|
||||||
env:
|
- name: Upload Pages artifact
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
uses: st1020/zola-deploy@v1
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue