mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 15:41: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:
|
||||
build:
|
||||
name: Publish site
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout main
|
||||
uses: actions/checkout@v3.0.0
|
||||
- name: Build and deploy
|
||||
uses: shalzz/zola-deploy-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Upload Pages artifact
|
||||
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