-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from dell/mg/release-gpg-key-update
Updated gpg key for release workflow
- Loading branch information
Showing
1 changed file
with
11 additions
and
7 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
# 6.Create the GitHub release | ||
# 7.All the steps are automated except the step 4. | ||
|
||
name: Release dell csi extensions optimized | ||
name: Release Dell-CSI-Extensions | ||
# Invocable as a reusable workflow | ||
# Can be manually triggered | ||
on: | ||
|
@@ -23,10 +23,14 @@ jobs: | |
with: | ||
fetch-depth: 0 # Fetch all history for all tags | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.CSM_GPG_PRIVATE_KEY }} | ||
git_user_signingkey: true | ||
git_commit_gpgsign: true | ||
git_tag_gpgsign: true | ||
git_config_global: true | ||
|
||
- name: Fetch all tags | ||
run: git fetch --tags | ||
|
@@ -58,7 +62,7 @@ jobs: | |
echo "${module}_new_tag=$new_tag" >> $GITHUB_ENV | ||
echo "${module}_new_version=$new_version" >> $GITHUB_ENV | ||
git tag -a $new_tag -m "$module $new_tag" | ||
git tag -s -a $new_tag -m "$module $new_tag" | ||
git push origin $new_tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -136,7 +140,7 @@ jobs: | |
echo "${module}_new_tag=$new_tag" >> $GITHUB_ENV | ||
echo "${module}_new_version=$new_version" >> $GITHUB_ENV | ||
git tag -a $new_tag -m "$module $new_tag" | ||
git tag -s -a $new_tag -m "$module $new_tag" | ||
git push origin $new_tag | ||
done | ||
|