Skip to content

Commit

Permalink
Merge pull request #137 from loic-yvonnet/feature/github_action
Browse files Browse the repository at this point in the history
Try fixing the CI
  • Loading branch information
loic-yvonnet authored Apr 4, 2024
2 parents fd14847 + 1413925 commit c9c2f29
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: GitHub Pages

on:
pull_request:
branches:
- master
push:
branches:
- master
Expand All @@ -15,12 +18,13 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
env:
PAGE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
environment:
name: github-pages
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
env:
PAGE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -45,6 +49,13 @@ jobs:
with:
path: dist

deploy:
if: github.event_name == 'push'

needs: build
runs-on: ubuntu-latest

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit c9c2f29

Please sign in to comment.