From af5aff2ec2914a9a708e6875b2be3a6485c68140 Mon Sep 17 00:00:00 2001 From: kelvinqian00 Date: Tue, 24 Sep 2024 10:33:33 -0400 Subject: [PATCH 1/2] Update README and remove refs to deprecated workflow --- README.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0b58f42..b6d6834 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# yetanalytics/runtimer +# yetanalytics/workflow-runtimer -This repository uses GitHub Actions to create Java runtimes for use in Yet projects like [SQL LRS](https://github.com/yetanalytics/lrsql) +This repository uses GitHub Actions to create Java runtimes for use in Yet projects like [SQL LRS](https://github.com/yetanalytics/lrsql). This workflow is built off of the [runtimer](https://github.com/yetanalytics/runtimer) workflow, but conforms to our current guidelines for workflow naming and tagging. ## Reusable GitHub Action @@ -8,7 +8,7 @@ This repo contains a [reusable workflow](https://docs.github.com/en/actions/lear ``` yaml build: - uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@< sha | tag | branch > + uses: yetanalytics/workflow-runtimer/.github/workflows/runtimer.yml@< sha | tag | branch > with: java-version: '11' java-distribution: 'temurin' @@ -25,12 +25,3 @@ This will create runtimes for the following operating systems: - Ubuntu 20.04 - Windows Server 2022 -## (DEPRECATED) Release JRE Runtime Packages - -Create JRE runtimes: - -1. Edit the [workflow file](.github/workflows/main.yml) -2. Push a tag -3. You'll find a draft release waiting for you for the given tag, describe and publish it. - -That's it! From 14c12622e052ff9a1550a2ca9f5934c193a210cb Mon Sep 17 00:00:00 2001 From: kelvinqian00 Date: Tue, 24 Sep 2024 10:36:12 -0400 Subject: [PATCH 2/2] Turn deprecated release workflow into CI workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 44 ----------------------------------- 2 files changed, 39 insertions(+), 44 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4d17c93 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: JRE CI + +# This was originally the deprecated JRE release artifact workflow. +# We keep this around because it is useful for CI on the runtimer workflow. + +on: + push: + branches: + - '*' + tags: + - 'v*' + +jobs: + build: + uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@af5aff2ec2914a9a708e6875b2be3a6485c68140 + with: + java-version: '11' + java-distribution: 'temurin' + java-modules: 'java.base,java.logging,java.naming,java.xml,java.sql,java.transaction.xa,java.security.sasl,java.management' + + draft_release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download ubuntu-latest Artifact + uses: actions/download-artifact@v4 + with: + name: ubuntu-20.04-jre + + - name: Download macOS-latest Artifact + uses: actions/download-artifact@v4 + with: + name: macos-12-jre + + - name: Download windows-latest Artifact + uses: actions/download-artifact@v4 + with: + name: windows-2022-jre + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 4f63dc1..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: (DEPRECATED) Release JRE Version - -# Release on tagged versions -on: - push: - tags: - - '*.*.*' - -jobs: - build: - uses: yetanalytics/runtimer/.github/workflows/runtimer.yml@7ed0b71225e1000a7e8428422555676fb4296752 - with: - java-version: '11' - java-distribution: 'temurin' - java-modules: 'java.base,java.logging,java.naming,java.xml,java.sql,java.transaction.xa,java.security.sasl,java.management' - draft_release: - needs: build - runs-on: ubuntu-latest - steps: - - - name: Download ubuntu-latest Artifact - uses: actions/download-artifact@v2 - with: - name: ubuntu-20.04-jre - - - name: Download macOS-latest Artifact - uses: actions/download-artifact@v2 - with: - name: macos-12-jre - - - name: Download windows-latest Artifact - uses: actions/download-artifact@v2 - with: - name: windows-2022-jre - - - name: Craft Draft Release - uses: softprops/action-gh-release@v1 - with: - # Defaults: - # name: [tag name] - # tag_name: github.ref - body: "## Release Notes\nTODO: Create great release notes!" - draft: true - files: '*-jre.zip'