Skip to content

Create dependabot.yml #29

Create dependabot.yml

Create dependabot.yml #29

Workflow file for this run

name: Test and Release
on:
push:
branches:
main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency: # Only 1 concurrent deployment, skip runs queued between the run in-progress and latest queued
group: "pages"
cancel-in-progress: false
jobs:
spell-check: # Spellcheck the html, markdown, and pdf files
runs-on: ubuntu-latest
steps:
- name: Install pdftotext
run: sudo apt-get install -y poppler-utils
- name: Checkout code
uses: actions/[email protected]
- name: Convert PDF to text
run: pdftotext files/oz-application.pdf files/application.txt
- name: Spellcheck
uses: rojopolis/[email protected]
with:
config_path: .github/spellcheck.yml
build-proof: # Tests the html files ability to be rendered
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Debug files
run: tree
- name: Build proof
uses: anishathalye/[email protected]
with:
directory: ./
semantic-version: # Bumps the version number based on the commit messages
needs: [build-proof, spell-check]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: get tag
id: tag_version
uses: mathieudutour/[email protected]
with:
dry_run: false # useful for debugging workflow when true
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch # minor will replace after v1.0.0 because only new application files are added by non-developers
- name: Create a GitHub release
uses: ncipollo/[email protected]
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
deploy: # Deploys the application to GitHub Pages
needs: [semantic-version]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Pages
uses: actions/[email protected]
- name: Upload artifact
uses: actions/[email protected]
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]