Skip to content

Commit

Permalink
Merge pull request #8 from sbesson/appveyor2ghactions
Browse files Browse the repository at this point in the history
Migrate to GitHub actions
  • Loading branch information
stick authored Oct 10, 2023
2 parents 86cc29c + 4275bb3 commit 9448f9a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 13 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Gradle

on:
push:
pull_request:

jobs:
build:
strategy:
matrix:
java: [8, 11]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Run commands
run: ./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: matrix.java == 8
with:
name: omero-ldaptool
path: build/distributions/*
if-no-files-found: error
upload:
name: Create release
needs: build
runs-on: ubuntu-latest
if: startswith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: List artifacts
run: ls -R
- name: Create release draft
uses: softprops/action-gh-release@v1
with:
files: omero-ldaptool/*
draft: true
fail_on_unmatched_files: true
13 changes: 0 additions & 13 deletions appveyor.yml

This file was deleted.

0 comments on commit 9448f9a

Please sign in to comment.