mirror of
https://github.com/catppuccin/nim.git
synced 2024-12-21 10:30:45 -06:00
ci: switch to new pages workflow (#6)
This commit is contained in:
parent
94e670eb93
commit
391f92c465
1 changed files with 14 additions and 9 deletions
23
.github/workflows/docs.yml
vendored
23
.github/workflows/docs.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: GitHub Pages
|
||||
name: Deploy Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -7,11 +7,13 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
id-token: write
|
||||
pages: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deploy.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
@ -22,8 +24,11 @@ jobs:
|
|||
- name: Build Docs
|
||||
run: nimble docs
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./public
|
||||
path: "public/"
|
||||
|
||||
- name: Deploy artifact to GitHub Pages
|
||||
id: deploy
|
||||
uses: actions/deploy-pages@v4
|
||||
|
|
Loading…
Reference in a new issue