Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/upload to s3 bucket #1

Open
wants to merge 7 commits into
base: owsi
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/pull-request-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: CI test pull request

on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Verify
run: mvn --batch-mode --update-snapshots verify
59 changes: 59 additions & 0 deletions .github/workflows/release-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Release, deploy and create next iteration

on:
workflow_dispatch:
inputs:
release_version:
description: "Release number version to create"
required: true
next_version:
description: "SNAPSHOT number of the next development version"
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Verify
run: mvn --batch-mode --update-snapshots verify

prepare-release:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.TOKEN_RELEASE}}
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Configure Git user email
run: git config user.email "[email protected]"
- name: Configure Git username
run: git config user.name "GitHub Actions"
- name: prepare
run: mvn --batch-mode -Dtag=${{ github.event.inputs.release_version }} release:prepare -DreleaseVersion=${{ github.event.inputs.release_version }} -DdevelopmentVersion=${{ github.event.inputs.next_version }}
- name: perform
run: mvn --batch-mode release:perform -Darguments="-Dmaven.javadoc.skip=true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
45 changes: 45 additions & 0 deletions .github/workflows/snapshot-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Build and deploy snapshot version of the project

on:
push:
branches: [owsi]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Verify
run: mvn --batch-mode --update-snapshots verify

deploy:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ target
.project
/.settings
/.gitignore
/.idea
*.iml
43 changes: 22 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>

<groupId>nl.topicus</groupId>
<artifactId>wqplot</artifactId>
<packaging>jar</packaging>
<version>7.1.0.owsi2-SNAPSHOT</version>
<version>7.2.0.owsi2-SNAPSHOT</version>
<name>WQPlot</name>
<description>Wicket/WiQuery-JqPlot binding</description>

Expand All @@ -33,11 +28,12 @@

<url>https://github.com/openwide-java/wiquery-jqplot/openwide-release</url>
<scm>
<url>[email protected]:openwide-java/wiquery-jqplot.git</url>
<connection>scm:git:[email protected]:openwide-java/wiquery-jqplot.git</connection>
<developerConnection>scm:git:[email protected]:openwide-java/wiquery-jqplot.git</developerConnection>
</scm>

<url>[email protected]:apidae-tourisme/wiquery-jqplot.git</url>
<connection>scm:git:[email protected]:apidae-tourisme/wiquery-jqplot.git</connection>
<developerConnection>scm:git:https://github.com/apidae-tourisme/wiquery-jqplot.git</developerConnection>
<tag>HEAD</tag>
</scm>

<developers>
<developer>
<id>hielkehoeve</id>
Expand Down Expand Up @@ -130,6 +126,13 @@
</dependency>
</dependencies>
<build>
<extensions>
<extension>
<groupId>com.gkatzioura.maven.cloud</groupId>
<artifactId>s3-storage-wagon</artifactId>
<version>2.3</version>
</extension>
</extensions>
<resources>
<resource>
<filtering>false</filtering>
Expand Down Expand Up @@ -220,15 +223,13 @@
</build>

<distributionManagement>
<repository>
<id>nexus-owsi-core</id>
<name>Nexus OWSI Core</name>
<url>https://projects.openwide.fr/services/nexus/content/repositories/owsi-core</url>
</repository>
<snapshotRepository>
<id>nexus-owsi-core-snapshots</id>
<name>Nexus OWSI Core Snapshots</name>
<url>https://projects.openwide.fr/services/nexus/content/repositories/owsi-core-snapshots</url>
</snapshotRepository>
<snapshotRepository>
<id>snapshot-bucket</id>
<url>s3://apidae-sit-packages/snapshot</url>
</snapshotRepository>
<repository>
<id>release-bucket</id>
<url>s3://apidae-sit-packages/release</url>
</repository>
</distributionManagement>
</project>