diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml index 53f24a28..a8e6476d 100644 --- a/.github/workflows/deploy_release.yml +++ b/.github/workflows/deploy_release.yml @@ -49,6 +49,21 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: | - nebula-exchange_spark_2.2/target/nebula-exchange_spark_2.2-*-SNAPSHOT.jar - nebula-exchange_spark_2.4/target/nebula-exchange_spark_2.4-*-SNAPSHOT.jar - nebula-exchange_spark_3.0/target/nebula-exchange_spark_3.0-*-SNAPSHOT.jar + nebula-exchange_spark_2.2/target/nebula-exchange_spark_2.2-${{ github.ref }}.jar + nebula-exchange_spark_2.4/target/nebula-exchange_spark_2.4-${{ github.ref }}.jar + nebula-exchange_spark_3.0/target/nebula-exchange_spark_3.0-${{ github.ref }}.jar + + - name: upload to oss + run: | + ossutil64 -e ${{ secrets.OSS_ENDPOINT }} \ + -i ${{ secrets.OSS_ID }} \ + -k ${{ secrets.OSS_SECRET }} \ + -f cp nebula-exchange_spark_2.2/target/nebula-exchange_spark_2.2-${{ github.ref }}.jar oss://nebula-graph/maven2/nebula-exchange/${{ github.ref }} + ossutil64 -e ${{ secrets.OSS_ENDPOINT }} \ + -i ${{ secrets.OSS_ID }} \ + -k ${{ secrets.OSS_SECRET }} \ + -f cp nebula-exchange_spark_2.4/target/nebula-exchange_spark_2.4-${{ github.ref }}.jar oss://nebula-graph/maven2/nebula-exchange/${{ github.ref }} + ossutil64 -e ${{ secrets.OSS_ENDPOINT }} \ + -i ${{ secrets.OSS_ID }} \ + -k ${{ secrets.OSS_SECRET }} \ + -f cp nebula-exchange_spark_3.0/target/nebula-exchange_spark_3.0-${{ github.ref }}.jar oss://nebula-graph/maven2/nebula-exchange/${{ github.ref }} diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml index 68cf47b0..4f4b7b1e 100644 --- a/.github/workflows/deploy_snapshot.yml +++ b/.github/workflows/deploy_snapshot.yml @@ -45,12 +45,23 @@ jobs: mvn clean package -pl nebula-exchange_spark_2.4 -am -Pscala-2.11 -Pspark-2.4 mvn clean package -pl nebula-exchange_spark_3.0 -am -Pscala-2.12 -Pspark-3.0 - - name: upload to snapshot assets - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: upload Exchange with Spark 2.2 to snapshot assets + uses: actions/upload-artifact@v2 with: - files: | - nebula-exchange_spark_2.2/target/nebula-exchange_spark_2.2-*-SNAPSHOT.jar - nebula-exchange_spark_2.4/target/nebula-exchange_spark_2.4-*-SNAPSHOT.jar - nebula-exchange_spark_3.0/target/nebula-exchange_spark_3.0-*-SNAPSHOT.jar + name: nebula-exchange_spark_2.2-2.5-SNAPSHOT.jar + path: + nebula-exchange_spark_2.2/target/nebula-exchange_spark_2.2-2.5-SNAPSHOT.jar + + - name: upload Exchange with Spark 2.4 to snapshot assets + uses: actions/upload-artifact@v2 + with: + name: nebula-exchange_spark_2.4-2.5-SNAPSHOT.jar + path: + nebula-exchange_spark_2.4/target/nebula-exchange_spark_2.4-2.5-SNAPSHOT.jar + + - name: upload Exchange with Spark 3.0 to snapshot assets + uses: actions/upload-artifact@v2 + with: + name: nebula-exchange_spark_3.0-2.5-SNAPSHOT.jar + path: + nebula-exchange_spark_3.0/target/nebula-exchange_spark_3.0-2.5-SNAPSHOT.jar