Revert "upload files to test java compile"
This reverts commit 4a8c01088a
.
This commit is contained in:
parent
4a8c01088a
commit
2e0272fb82
@ -1,35 +0,0 @@
|
||||
name: Java CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: http://fly6516.synology.me:4000/Gitea_Action/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Compile Java program
|
||||
run: javac HelloWorld.java -d ./build/classes
|
||||
|
||||
- name: List compiled files
|
||||
run: ls -la ./build/classes
|
||||
|
||||
- name: Upload artifact
|
||||
uses: http://fly6516.synology.me:4000/Gitea_Action/upload-artifact@v2
|
||||
with:
|
||||
name: java-classes
|
||||
path: ./build/classes
|
@ -1,10 +0,0 @@
|
||||
|
||||
public class HelloWorld {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user