forked from srobo/kch-hw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from WillB97/rev_c
Revision C
- Loading branch information
Showing
11 changed files
with
87,088 additions
and
48,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: "KiBot action using quick-start" | ||
|
||
# Controls when the action will run. Triggers the workflow on push or manual event | ||
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)" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# So we can run a diff between last 2 changes | ||
fetch-depth: '0' | ||
|
||
- name: Setup Pages | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Run KiBot | ||
uses: INTI-CMNB/KiBot@v2_k8 | ||
with: | ||
quickstart: YES | ||
|
||
- name: Upload results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Automatic_outputs | ||
path: Generated | ||
|
||
- name: Upload artifact | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload generated files | ||
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: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.