setup-java
Set up your GitHub Actions workflow with a specific version of Java (by actions)
github-pages-deploy-action
🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like. (by JamesIves)
| setup-java | github-pages-deploy-action | |
|---|---|---|
| 12 | 12 | |
| 1,936 | 4,582 | |
| 1.3% | 0.2% | |
| 7.1 | 8.5 | |
| 3 days ago | 3 days ago | |
| TypeScript | TypeScript | |
| MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
setup-java
Posts with mentions or reviews of setup-java.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-08-28.
- GitHub workflows tips and tricks
-
Semantic Versioning using GitVersion YAML file for your .NET, Java, and Kotlin projects' CI/CD
name: Java Build and Test With Gradle on: [push, pull_request, workflow_dispatch] jobs: build: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4.2.2 with: fetch-depth: 0 - name: Set up JDK 23 uses: actions/setup-java@v4.5.0 #https://github.com/actions/setup-java with: java-version: '23' distribution: 'oracle' - name: Install GitVersion 6.0.5 for Gradle run: | wget -q -O gitversion.tar.gz https://github.com/GitTools/GitVersion/releases/download/6.0.5/gitversion-linux-x64-6.0.5.tar.gz mkdir gitversion_extracted tar -xzf gitversion.tar.gz -C gitversion_extracted ls -R gitversion_extracted sudo mv gitversion_extracted/gitversion /usr/local/bin/gitversion sudo chmod +x /usr/local/bin/gitversion - name: Setup Gradle 8.11.1 uses: gradle/actions/setup-gradle@v4 #https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#build-with-a-specific-gradle-version with: gradle-version: '8.11.1' - name: Build with Gradle 8.11.1 run: gradle build --scan --warning-mode all dependency-submission: # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout uses: actions/checkout@v4.2.2 - name: Set up JDK 23 uses: actions/setup-java@v4.5.0 with: java-version: '23' distribution: 'oracle' - name: Setup Gradle 8.11.1 uses: gradle/actions/setup-gradle@v4 with: gradle-version: '8.11.1' - name: Setup Gradle Wrapper run: gradle wrapper - name: Generate and submit dependency graph uses: gradle/actions/dependency-submission@v4
- Disable Annotations in Github Actions
-
Using Github Actions to publish your Flutter APP to Firebase App Distribution
Then, we have two important initial steps to define. The first one is an official GitHub Action used to check-out a repository so a workflow can access it. The second one it's pretty more complex but, briefly, downloads and set up a requested version of Java.
-
Top 10 GitHub Actions You Should Use to set up your CI/CD Pipeline
The most popular ones are Node.js, Python, Java JDK, Go, .Net Core SDK.
-
My summary of jPrime 2022
Finally, note that the v2 of setup-java GitHub Action limits the possible JDK distributions to four options. If you need to use one that is not listed, use foojayio/setup-java instead to configure any distribution.
-
Upgrade to Gradle JDK 11 on Github Actions
See https://github.com/actions/setup-java for more configuration regarding distribution, version and caching.
-
Github action to download and install Oracle JDK and OpenJDK (including EA) builds.
Why can't Oracle just integrate with https://github.com/actions/setup-java like everyone else?
-
Deploying to GitHub Pages using GitHub Actions
Next up we'll need to add a step to compile our production ready build. For this we can add two new steps, one which configures our Node version to ensure it matches our application, followed by another that runs the necessary commands with npm. Depending on how your application is built you may need to add another step between these to install any sort of required environments such as Python or Java.
-
JaCoCo coverage badges, PR coverage checks, and PR coverage comments, from GitHub Actions
Set up the JDK with the actions/setup-java GitHub Action.
github-pages-deploy-action
Posts with mentions or reviews of github-pages-deploy-action.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-11-07.
-
GitHub Actions, Devbox, and Elm
Deploy to GitHub Pages git.ts - Read to help you improve your own deployment script.
- JamesIves/GitHub-pages-deploy-action: File not found v4/lib/main.js
-
Setting up a free & production-ready web app backend in Go (with database) in less than 100 lines
The interesting part is towards the bottom where we build the frontend code and make use of the github-pages-deploy-action step to automatically make a new commit with the compiled frontend code to a gh-pages branch.
-
How to publish React App (CRA) on Github Pages using Github Actions with Turborepo
Finally, will do the deploy on github pages using the scripts from JamesIves/github-pages-deploy-action, and create a branch gh-pages with the code from apps/web/build.
-
Noob question regarding hosting TS apps
- Deploy to GitHub Pages using GitHub Actions
-
How to deploy and publish to NPM your own React Components library
For Storybook deploy, we will use github-pages-deploy-action
- GitHub - JamesIves/github-pages-deploy-action: Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
-
How do you use Jinja with Github?
If you've built a site that can be rendered statically, then you can probably set up a GitHub Pages deploy via GitHub Actions (since Pages supports only Jekyll by default, you need this for any other static site generator). But if you have a server component, then you'll need to host it some other way.
-
Deploying to GitHub Pages using GitHub Actions
Around three years ago I created the github-pages-deploy-action project as my first real venture into the world of open source. I built this action so I could make continued updates to a blog while being away from my work laptop. The community response has been fantastic and I'm very happy with how it has evolved over the years as a result. I even had the opportunity to be interviewed by GitHub for my involvement back in 2020 which you can read here.
-
Using GitHub Actions to Publish Doxygen Docs to GitHub Pages
This action is a composite action using shell scripts for installing necessary tools and preparing docs and makes use of JamesIves/github-pages-deploy-action for deploying the docs to a GitHub Pages branch.
What are some alternatives?
When comparing setup-java and github-pages-deploy-action you can also consider the following projects:
setup-dotnet - Set up your GitHub Actions workflow with a specific version of the .NET core sdk
actions-gh-pages - GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
github-sponsors-readme-action - ❤️ This GitHub Action will automatically add your GitHub Sponsors to your README. It can be configured in multiple ways allowing you to display and breakdown your sponsors by price tier with fallbacks.
doxygen-github-pages-action - GitHub Action for deploying Doxygen documentation to a GitHub pages branch
toolkit - The GitHub ToolKit for developing GitHub Actions.
github-app-token - Impersonate a GitHub App in a GitHub Action