Skip to content

Commit

Permalink
Java lib release (#143)
Browse files Browse the repository at this point in the history
* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* merge from master (#12)

* SBOM manifest generation (#138)

* Adding SBOM generation step (#135)

Signed-off-by: MD Ashique <[email protected]>

* Java lib release (#137)

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

---------

Signed-off-by: MD Ashique <[email protected]>

---------

Signed-off-by: MD Ashique <[email protected]>

* Java lib release (#139)

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

---------

Signed-off-by: MD Ashique <[email protected]>

---------

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

* Adding SBOM generation step

Signed-off-by: MD Ashique <[email protected]>

---------

Signed-off-by: MD Ashique <[email protected]>
  • Loading branch information
ASHIQUEMD authored Aug 4, 2023
1 parent 2827011 commit 3853b09
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,22 @@ jobs:
cp "$source/target/$prefix-sources.jar" "$destination/$prefix-sources.jar"
shell: bash
- name: Generate SBOM manifest
if: startsWith(github.ref, 'refs/tags/v')
if: startswith(github.ref, 'refs/tags/v')
run: |
sudo apt-get update
sudo apt-get install wget
wget https://github.com/microsoft/sbom-tool/releases/download/v1.2.0/sbom-tool-linux-x64
chmod +x sbom-tool-linux-x64
ls -l sbom-tool-linux-x64
sudo mv sbom-tool-linux-x64 /usr/local/bin/sbom-tool
sbom-tool generate -b ${{ env.MAVEN_OUTDIR }} -pn "Azure Functions Dapr Java Triggers and Bindings" -pv "${{ env.REL_VERSION }}"
working-directory: ${{ env.JAVA_LIB_WORKING_DIRECTORY }}
sudo curl -Lo $RUNNER_TEMP/sbom-tool https://github.com/microsoft/sbom-tool/releases/download/v1.2.0/sbom-tool-linux-x64
sudo chmod +x $RUNNER_TEMP/sbom-tool
$RUNNER_TEMP/sbom-tool generate -b ${{ env.MAVEN_OUTDIR }} -bc ${{ env.JAVA_LIB_WORKING_DIRECTORY }} -pn "Azure Functions Dapr Java Triggers and Bindings" -pv "${{ env.REL_VERSION }}" -ps Microsoft
- name: Upload Java artifacts
uses: actions/upload-artifact@master
if: startswith(github.ref, 'refs/tags/v')
with:
name: java_release_drop
path: ${{ env.MAVEN_OUTDIR }}
- name: Upload .Net artifacts
uses: actions/upload-artifact@master
if: startswith(github.ref, 'refs/tags/v')
with:
name: release_drop
name: dotnet_release_drop
path: ${{ env.NUPKG_OUTDIR }}
- name: Create a GitHub Release
if: startswith(github.ref, 'refs/tags/v')
Expand All @@ -144,4 +145,4 @@ jobs:
export AZCOPY_SPA_CLIENT_SECRET=${{ secrets.AZCOPY_SPA_CLIENT_SECRET }}
./azcopy login --service-principal --application-id ${{ secrets.AZCOPY_SPA_APPLICATION_ID }}
./azcopy copy "${{ env.NUPKG_OUTDIR }}/*" "https://azuresdkpartnerdrops.blob.core.windows.net/drops/azure-functions-dapr-extension/dotnet/${{ env.REL_VERSION }}/"
./azcopy copy "${{ env.MAVEN_OUTDIR }}/*" "https://azuresdkpartnerdrops.blob.core.windows.net/drops/azure-functions-dapr-extension/java/${{ env.REL_VERSION }}/"
./azcopy copy "${{ env.MAVEN_OUTDIR }}/*" "https://azuresdkpartnerdrops.blob.core.windows.net/drops/azure-functions-dapr-extension/java/${{ env.REL_VERSION }}/"

0 comments on commit 3853b09

Please sign in to comment.