add style check for description field #220
Workflow file for this run
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
name: Sc4pac CI | |
on: | |
push: | |
branches: [ "main", "action" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: # for manually triggering the workflow from Actions tab | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: python -m pip install --upgrade PyYAML jsonschema | |
- name: Check sc4pac yaml schema | |
run: make lint | |
deploy: | |
needs: lint | |
if: ${{ github.repository == 'memo33/sc4pac' && github.ref == 'refs/heads/main' }} | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
# 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 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- uses: sbt/setup-sbt@v1 | |
- name: Build sc4pac executable | |
run: cd sc4pac-tools && sbt assembly && ./sc4pac --version | |
- name: Build channel and website | |
run: make gh-pages-no-lint | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
# note that this action dereferences our `latest` symlinks, but that's not a huge problem, it just duplicates each json file | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "gh-pages" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |