diff --git a/.github/workflows/lines.yml b/.github/workflows/lines.yml new file mode 100644 index 0000000..f540a98 --- /dev/null +++ b/.github/workflows/lines.yml @@ -0,0 +1,28 @@ +name: Lines-98 + +on: [push] + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + java-version: '19' + distribution: 'temurin' + - name: Build + run: ant clean package + - name: Upload the artifact + uses: actions/upload-artifact@v3 + with: + name: 'Lines98' + path: build/Lines98.jar + - name: Create a release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: + build/Lines98.jar diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index d74bd53..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,31 +0,0 @@ -pipeline { - agent any - - triggers { - pollSCM('* * * * *') - } - - stages { - stage('Build') { - steps { - git url: 'https://github.com/hoaftq/Lines-98.git', branch: 'main' - - withAnt(installation: 'localAnt') { - script { - if (isUnix()) { - sh 'ant clean package' - } else { - bat 'ant clean package' - } - } - } - } - - post { - success { - archiveArtifacts 'build/*.jar' - } - } - } - } -} diff --git a/build.xml b/build.xml index d46d9d1..83ad550 100644 --- a/build.xml +++ b/build.xml @@ -1,4 +1,4 @@ - +