Skip to content

Commit

Permalink
Merge pull request #471 from xiaoyekanren/master
Browse files Browse the repository at this point in the history
fix create release without java-version
  • Loading branch information
xiaoyekanren authored Dec 24, 2024
2 parents e6721f0 + 77e6f77 commit e568bb5
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,37 +56,16 @@ jobs:
run: exit 1
#----end----

#----start----
create-release:
runs-on: ubuntu-latest
needs: [collect]
steps:
- name: Create release
id: create-release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ needs.collect.outputs.date }} ${{ needs.collect.outputs.commit_id_short }} java${{ matrix.java_version }}
tag: ${{ needs.collect.outputs.date }}-${{ needs.collect.outputs.commit_id_short }}-java${{ matrix.java_version }}
prerelease: false
draft: false
body: |
Auto build...
Commit Time: ${{ needs.collect.outputs.commit_time }}
Commit ID: ${{ needs.collect.outputs.commit_id }}
Java Version: java${{ matrix.java_version }}
#----end----

#----start----
compile:
runs-on: ubuntu-latest
needs: [collect,create-release]
needs: [collect]
strategy:
fail-fast: false
max-parallel: 20
matrix:
java_version: [ 8 ]
release_db: [ iotdb-1.0,iotdb-1.1,iotdb-1.3,iotdb-2.0,influxdb,influxdb-2.0,timescaledb,timescaledb-cluster ]
release_db: [ iotdb-1.3,iotdb-2.0,influxdb,influxdb-2.0,timescaledb,timescaledb-cluster ]
steps:
# set java
- name: Set java ${{ matrix.java_version }}
Expand Down Expand Up @@ -140,12 +119,17 @@ jobs:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "${{ github.workspace }}/iot-benchmark-${{ matrix.release_db }}-java${{ matrix.java_version }}.zip"
body: |
Auto build...
Commit Time: ${{ needs.collect.outputs.commit_time }}
Commit ID: ${{ needs.collect.outputs.commit_id }}
Java Version: java${{ matrix.java_version }}
#----end----

#----start----
push-commit:
runs-on: ubuntu-latest
needs: [collect,create-release,compile]
needs: [collect,compile]
steps:
# checkout iot-benchmark
- name: checkout iot-benchmark
Expand Down

0 comments on commit e568bb5

Please sign in to comment.