mirror of
https://github.com/andrewgioia/keyrune.git
synced 2026-04-09 13:25:23 +00:00
Compare commits
1 Commits
d66315eda4
...
a2580e8d69
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2580e8d69 |
33
.github/workflows/docs-master.yml
vendored
33
.github/workflows/docs-master.yml
vendored
@ -4,18 +4,19 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pages-production
|
group: pages-production
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build:
|
||||||
name: Build and deploy docs
|
name: Build docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -34,11 +35,21 @@ jobs:
|
|||||||
- name: Build docs site
|
- name: Build docs site
|
||||||
run: npm run publish
|
run: npm run publish
|
||||||
|
|
||||||
- name: Deploy production docs to gh-pages root
|
# upload the built docs as the GitHub Pages artifact
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
- name: Upload artifact for GitHub Pages
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: ./docs
|
||||||
publish_branch: gh-pages
|
|
||||||
publish_dir: ./docs
|
deploy:
|
||||||
keep_files: true
|
name: Deploy to GitHub Pages
|
||||||
cname: keyrune.andrewgioia.com
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user