mirror of
https://github.com/catppuccin/nim.git
synced 2024-12-22 02:50:44 -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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,11 +7,13 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
id-token: write
|
||||||
concurrency:
|
pages: write
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deploy.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -22,8 +24,11 @@ jobs:
|
||||||
- name: Build Docs
|
- name: Build Docs
|
||||||
run: nimble docs
|
run: nimble docs
|
||||||
|
|
||||||
- name: Deploy
|
- name: Upload artifact
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: "public/"
|
||||||
publish_dir: ./public
|
|
||||||
|
- name: Deploy artifact to GitHub Pages
|
||||||
|
id: deploy
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|
Loading…
Reference in a new issue