1/21/2024 0 Comments Sample java project github swing![]() ![]() It's important to set a key so that the action will try to restore the cache files based on that key. In the example, I'm caching all the dependency jars. Considering jobs on hosted GitHub runners start in a clean virtual environment, we want to save time so that dependencies don't need to be downloaded each time a job is ran.In the example, we set up the JDK version and with settings-path, we specify the location for the settings.xml file. The with key allow us to specify the variables that will be available to the action. The setup action configures the Java environment.The checkout action downloads a copy of our repository on the runner.In the above example, I just have one job called publish that performs the following steps: The runs-on configures the job to run on a virtual machine hosted by Github, to be more precise an Ubuntu Linux runner (read more here). Now, we need to set the jobs for the workflow. In this case, the event is a push to my master branch. We begin by adding a name for our workflow and setting the event that will trigger it. Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |