feat: add animation to arrondissements #22
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: cd | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
types: [ 'deploy' ] | |
workflow_dispatch: | |
jobs: | |
cd: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install | |
run: npm ci | |
- name: Test | |
run: npm test | |
- name: Build | |
run: npm run build | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
semantic_version: 23 | |
extra_plugins: | | |
@semantic-release/changelog@6 | |
@semantic-release/git@10 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
cname: metro-travel.vincenthardouin.dev | |
- name: Generate Screenshots | |
id: screenshots | |
if: steps.semantic.outputs.new_release_published == 'true' && steps.semantic.outputs.new_release_patch_version == '0' | |
run: (npm start &); npm run screenshots && echo "screenshots_generated=true" >> $GITHUB_OUTPUT | |
- name: Commit & push screenshots | |
if: steps.screenshots.outputs.screenshots_generated == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git add docs | |
&& git commit -m "docs: include screenshots for version ${{steps.semantic.outputs.new_release_published}} [skip ci]" | |
&& git push https://x-access-token:${{ env.GITHUB_TOKEN }}@github.com/${{ vars.GITHUB_REPOSITORY }}.git HEAD:refs/heads/main |