chore: use margin instead of br tags, migrate font-awesome icon defin… #88
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: CI | |
on: | |
push: | |
branches: [ dev ] | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.x" | |
- name: Install check-jsonschema | |
run: pip install check-jsonschema | |
- name: Validate Guide only Custom Formats | |
run: | | |
EXIT=0 | |
for f in data/*; do | |
if [[ "$f" == "data/conferences.json" ]]; then | |
check-jsonschema -v --schemafile schema/conferences.json "data/conferences.json" || EXIT=1 | |
else | |
check-jsonschema -v --schemafile schema/community.json "$f" || EXIT=1 | |
fi | |
done | |
exit $EXIT | |
build: | |
runs-on: ubuntu-latest | |
needs: validate | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Install, build, and upload your site | |
uses: withastro/action@v2 | |
deploy: | |
if: ${{ github.ref == 'refs/heads/dev' && github.event_name != 'pull_request' && github.repository == 'lyontechhub/lyontechhub.github.io' }} | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |