From dce823fac229008e35fdd9fefe3e072f8132ae46 Mon Sep 17 00:00:00 2001 From: plata Date: Sun, 24 Jan 2021 14:56:25 +0100 Subject: [PATCH] Add GitHub action to create "latest" release --- .github/workflows/pre-release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 00000000000..fb30b88aabd --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,30 @@ +name: pre-release + +on: + push: + branches: + - master + +jobs: + pre-release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn clean package + - name: Create package + run: | + cd phoenicis-dist/src/scripts + bash phoenicis-create-package.sh + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: phoenicis-dist/*.deb