-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Ghazaryan
authored and
Martin Ghazaryan
committed
May 25, 2022
1 parent
713c088
commit 970c646
Showing
4 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and publish xk6-mongo | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
jobs: | ||
build: | ||
name: Build xk6-mongo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Build 🏗️ | ||
id: build | ||
uses: szkiba/xk6bundler@v0 | ||
with: | ||
platform: linux/amd64 windows/amd64 darwin/amd64 | ||
with: | | ||
github.com/GhMartingit/xk6-mongo@${{ github.ref_name }} | ||
- name: Install Go 🧑💻 | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.18' | ||
|
||
- name: Generate CycloneDX SBOM artifacts 📃 | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
run: | | ||
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest | ||
cyclonedx-gomod mod -json -licenses -output cyclonedx-xk6-mongo-${{ github.ref_name }}.json | ||
- name: Upload CycloneDX SBOM artifact for go.mod 💾 | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: cyclonedx-xk6-mongo-${{ github.ref_name }}.json | ||
path: | ||
cyclonedx-xk6-mongo-${{ github.ref_name }}.json | ||
|
||
- name: Create Release 📦 | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: dist/*.tar.gz |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters