Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar committed Nov 11, 2024
1 parent 37a6468 commit a8763e0
Showing 1 changed file with 83 additions and 87 deletions.
170 changes: 83 additions & 87 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,87 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Bikeshed
run: pip install bikeshed==3.13.0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Generate Docs with Gradle Wrapper
run: ./gradlew generateDocs

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.8

- name: Build with Maven
run: mvn verify

- name: Publish Spec
uses: actions/upload-pages-artifact@v1
with:
path: io.opencaesar.oml.specification/build/bikeshed

deploy:

needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy Spec
id: deployment
uses: actions/deploy-pages@v1

dependency-submission:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
build:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v2

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Bikeshed
run: pip install bikeshed==3.13.0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Build with Gradle Wrapper
run: ./gradlew build

- name: Generate Docs with Gradle Wrapper
run: ./gradlew generateDocs
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.8

- name: Build with Maven
run: mvn verify

- name: Publish Spec
uses: actions/upload-pages-artifact@v1
with:
path: io.opencaesar.oml.specification/build/bikeshed

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy Spec
id: deployment
uses: actions/deploy-pages@v1

dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

0 comments on commit a8763e0

Please sign in to comment.