Skip to content

Commit

Permalink
Try and put outputs on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Jun 19, 2024
1 parent 1dab50d commit cbf04da
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/kibot_action_quick_start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ on:
- push
- workflow_dispatch

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
quick:
name: "Quick Start (action)"
Expand All @@ -27,3 +39,22 @@ jobs:
with:
name: Automatic_outputs
path: Generated

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: quick
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload generated files
path: 'Generated'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit cbf04da

Please sign in to comment.