Skip to content

Commit

Permalink
Use deploy better
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 26, 2024
1 parent 7c95a61 commit 231a7d1
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ on:
- '**/docs.yml'

jobs:
# Single deploy job no building
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: trunk # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
# upload entire directory
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 231a7d1

Please sign in to comment.