Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Feb 1, 2024
1 parent 84ca52d commit f90915a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 37 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,10 @@ name: Build

on:
workflow_dispatch:
# schedule:
# - cron: "0 1 * * *"
pull_request:
push:
branches: [
"main",
"dev",
"*"
]
branches: ["*"]
tags: ["v*"]
paths-ignore:
[
"docs/**",
"**/*.md",
"site/**",
"**/portal/**",
"tools/**",
"test/**",
".github/workflows/website.yml",
".github/workflows/dependabot.yml",
".github/dependabot.yml",
".github/FUNDING.yml",
]
pull_request:
paths-ignore:
[
"docs/**",
"**/*.md",
"site/**",
"**/portal/**",
"tools/**",
"test/**",
".github/workflows/website.yml",
".github/workflows/dependabot.yml",
".github/dependabot.yml",
".github/FUNDING.yml",
]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -199,7 +167,7 @@ jobs:
release:
name: Release
if: ${{ github.repository == 'mathieucarbou/YaSolR' && github.event_name != 'pull_request' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) }}
if: ${{ github.repository_owner == 'mathieucarbou' && github.event_name != 'pull_request' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) }}
runs-on: ubuntu-latest
needs: [cpplint, YaSolR]
permissions:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
source: ./site
destination: ./site/_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./site/_site

Expand All @@ -46,4 +46,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4

0 comments on commit f90915a

Please sign in to comment.