Merge pull request #1351 from ebocher/line_referencing #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI_snapshot | |
on: | |
push: | |
branches: [ '**' ] | |
workflow_run: | |
workflows: ["CI release"] | |
branches: [ '**' ] | |
types: | |
- completed | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Upload Snapshot | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the source code of the project | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# Setup the jdk using version 11 of Adoptium Temurin | |
- name: Setup java 11 using Adoptium Temurin | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }} | |
gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
# Setup postgis test DB | |
- uses: SPalominos/[email protected] | |
with: | |
psql_version: '9.6' | |
pgis_version: '2.5' | |
docker_image: 'postgis/postgis' | |
db_password: 'orbisgis' | |
db_user: 'orbisgis' | |
db_name: 'orbisgis_db' | |
# Install the GPG secret key | |
- name: Install gpg secret key | |
run: | | |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | |
gpg --list-secret-keys --keyid-format LONG | |
# Deploy the snapshot | |
- name: Deploy | |
run: mvn deploy -ntp --batch-mode | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSWORD }} | |
# Build distribution artifact | |
- name: Distribution | |
run: mvn -ntp --batch-mode -Dmaven.test.skip=true -P standalone package | |
#Production of the archive | |
- name: Unzip production artifacts | |
run: unzip h2gis-dist/target/h2gis-standalone-bin.zip | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: h2gis-standalone-bin | |
path: h2gis-standalone/ |