Update index.html #40
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: 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: minor # only new application files are added by non-developers, so minor is probably more accurate | |
- 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] |