-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(feat/slsa)[SEC-1085]: add publish pipeline [INS-3792] (#347)
* chore: add publish pipeline [INS-3792] * refactor build and publish pipeline to add provenance and sbom scan --------- Co-authored-by: saisatishkarra <[email protected]>
- Loading branch information
1 parent
7efd8e0
commit 2e8c285
Showing
2 changed files
with
94 additions
and
1 deletion.
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
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,43 @@ | ||
name: Release httpsnippet | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Tag version to release' | ||
required: true | ||
|
||
env: | ||
# Release Tag to build and publish | ||
TAG: ${{ github.event.inputs.version }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Git user | ||
uses: Homebrew/actions/git-user-config@master | ||
with: | ||
username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }} | ||
|
||
- name: Tag the Repository | ||
run: | | ||
git tag ${{ env.TAG }} | ||
git push origin ${{ env.TAG }} | ||
- name: Create Tag and Release | ||
uses: ncipollo/release-action@v1 | ||
id: core_tag_and_release | ||
with: | ||
tag: ${{ env.TAG }} | ||
name: "httpsnippet ${{ env.TAG }} 📦" | ||
generateReleaseNotes: true | ||
prerelease: false | ||
draft: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |