Skip to content

Commit

Permalink
Move CI/CD to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
melaasar committed Nov 11, 2024
1 parent 8fafefc commit 4f62685
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 92 deletions.
57 changes: 0 additions & 57 deletions .deploy/deploy.sh

This file was deleted.

Binary file removed .deploy/deploy_key.enc
Binary file not shown.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug Report
about: To provide a concise description of a bug or issue.
title: "[BUG] - "
labels: Bug
assignees: ''

---

## Description
A clear and concise description of what the bug is.

## Steps to Reproduce
Steps to reproduce the behavior:
- [ ] Step 1
- [ ] Step 2
- [ ] Step 3

## Expected Behavior
A clear and concise description of what should be the expected behavior.

## Additional Context
Enter any other details such as dependencies, environment, examples, etc.

## Relevant screenshots
If applicable, add screenshots to help illustrate the issue.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Question
about: Ask a question
title: "[QUESTION] -"
labels: Question
assignees: ''

---

## Description
A brief description of your question.

## Additional Context
Description providing additional details and context.

## Relevant screenshots
If applicable, add screenshots to help illustrate the issue.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/user-story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: User Story
about: To describe a user story, feature, or enhancement.
title: ''
labels: ''
assignees: ''

---

## User Story
As a **[Role]**, I would like **[Requirement]** so that **[Reason]**.

## Detailed Description
Description providing additional details and context.

## Acceptance Criteria
- [ ] Given **[Condition]**, then **[Expected Result]**
- [ ] Given **[Condition]**, then **[Expected Result]**
- [ ] Given **[Condition]**, then **[Expected Result]**

## Sub-task List
- [ ] Task 1
- [ ] Task 2
- [ ] Task 3
57 changes: 57 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CD

on:
release:
types: [published]

jobs:
publish:

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

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

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

- name: Publish package
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRHPASSWORD }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRHUSERNAME }}
ORG_GRADLE_PROJECT_pgpSigningKey: ${{ secrets.PGPSIGNINGKEY }}
ORG_GRADLE_PROJECT_pgpSigningPassword: ${{ secrets.PGPSIGNINGPASSWORD }}

- name: Generate Docs
run: ./gradlew generateDocs

- name: Publish Spec
uses: actions/upload-pages-artifact@v1
with:
path: build/docs

deploy:

needs: publish
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

29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

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

jobs:
build:

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

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

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

- name: Build with Gradle Wrapper
run: ./gradlew build
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# provenance-vocabularies

[![Build Status](https://app.travis-ci.com/opencaesar/provenance-vocabularies.svg?branch=master)](https://app.travis-ci.com/github/opencaesar/provenance-vocabularies)
[![Release](https://img.shields.io/github/v/tag/opencaesar/provenance-vocabularies?label=release)](https://github.com/opencaesar/provenance-vocabularies/releases/latest)
[![Documentation](https://img.shields.io/badge/Documentation-HTML-orange)](https://opencaesar.github.io/provenance-vocabularies/)
[![Build Status](https://github.com/opencaesar/provenance-vocabularies/actions/workflows/ci.yml/badge.svg)](https://github.com/opencaesar/provenance-vocabularies/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/opencaesar/provenance-vocabularies?label=Release)](https://github.com/opencaesar/provenance-vocabularies/releases/latest)
[![Documentation](https://img.shields.io/badge/Documentation-HTML-orange)](https://www.opencaesar.io/provenance-vocabularies/)

## [PROV-O](https://www.w3.org/TR/2013/REC-prov-o-20130430/)

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ext.title = 'Provenance Vocabularies'
description = 'Provenance vocabularies from http://www.w3.org/ns/prov'
group ='io.opencaesar.ontologies'
version = '4.0.0'
version = '4.1.0'

/*
* The Gradle task dependencies
Expand Down Expand Up @@ -122,7 +122,7 @@ task generateDocs (type: io.opencaesar.owl.doc.OwlDocTask, dependsOn: owlReasonP
// OWL Ontology Iris
inputOntologyIris = [ "$rootIri/classes", "$rootIri/properties", "$rootIri/individuals" ]
// Output folder
outputFolderPath = file('build/doc')
outputFolderPath = file('build/docs')
// Output case sensitivie path
outputCaseSensitive = org.gradle.internal.os.OperatingSystem.current().isLinux()
}
Expand Down

0 comments on commit 4f62685

Please sign in to comment.