mirror of
https://github.com/andrewgioia/keyrune.git
synced 2026-03-28 09:15:20 +00:00
Update docs-master.yml to remove upload-pages-artifact and use the same deployment method as docs-pr.yml
This commit is contained in:
parent
c79e07e2a6
commit
99d5f01fce
33
.github/workflows/docs-master.yml
vendored
33
.github/workflows/docs-master.yml
vendored
@ -4,19 +4,18 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pages-production
|
group: pages-production
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-and-deploy:
|
||||||
name: Build docs
|
name: Build and deploy docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -35,21 +34,11 @@ jobs:
|
|||||||
- name: Build docs site
|
- name: Build docs site
|
||||||
run: npm run publish
|
run: npm run publish
|
||||||
|
|
||||||
# upload the built docs as the GitHub Pages artifact
|
- name: Deploy production docs to gh-pages root
|
||||||
- name: Upload artifact for GitHub Pages
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
uses: actions/upload-pages-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
path: ./docs
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_branch: gh-pages
|
||||||
deploy:
|
publish_dir: ./docs
|
||||||
name: Deploy to GitHub Pages
|
keep_files: true
|
||||||
needs: build
|
cname: keyrune.andrewgioia.com
|
||||||
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