Fix typos found by codespell (#183) #158
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish_on_push: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
vocab: [ | |
"common-rdf/vocab-common-rdf.yml", | |
"solid-rdf/vocab-solid.yml", | |
"inrupt-rdf/Core/vocab-inrupt-core.yml", | |
"inrupt-rdf/Glossary/vocab-inrupt-glossary.yml", | |
"inrupt-rdf/Test/vocab-inrupt-test.yml" | |
] | |
name: CD for ${{ matrix.vocab }} | |
steps: | |
# Setup. | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
# Initializes node for the runner. | |
- name: Node setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.16.0' | |
registry-url: https://registry.npmjs.com/ | |
scope: '@inrupt' | |
# The following step sets up Maven. | |
- name: Set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
# These values are used in the `settings.xml` Maven config file. | |
server-id: cloudsmith-development # Value of the distributionManagement/repository/id field of the pom.xml | |
server-username: ${{ secrets.CLOUDSMITH_USERNAME }} | |
server-password: ${{ secrets.CLOUDSMITH_PASSWORD }} | |
- name: Generate proper Maven settings | |
uses: ./.github/fill-template | |
with: | |
template-path: ./.github/maven-settings.hbs | |
output-path: ./settings.xml | |
env: | |
SERVER_ID_RELEASE: cloudsmith-staging | |
SERVER_URL_RELEASE: https://maven.cloudsmith.io/inrupt/sdk-staging/ | |
SERVER_ID_SNAPSHOT: cloudsmith-development | |
SERVER_URL_SNAPSHOT: https://maven.cloudsmith.io/inrupt/sdk-development/ | |
SERVER_USERNAME: ${{ secrets.CLOUDSMITH_USERNAME }} | |
SERVER_PASSWORD: ${{ secrets.CLOUDSMITH_PASSWORD }} | |
# The following action is defined in the current repo. | |
# It reads the expected generator version from the YAML file. | |
- name: Get generator version | |
uses: ./.github/artifact-generator-version/ | |
id: generator-version-common | |
with: | |
vocab-config-path: ${{ matrix.vocab }} | |
# Note: This only pushes to Cloudsmith (not npm), because it does not | |
# increment the version number, which is fine for Maven SNAPSHOT | |
# versions. | |
- run: npx @inrupt/artifact-generator@${{steps.generator-version-common.outputs.vocab-generator-version}} generate -l ${{ matrix.vocab }} --noPrompt -p cloudsmith | |
- name: Upload log for debug | |
# Only upload if the previous step failed. | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
path: mvn-deploy.log | |
name: mvn-deploy |