Skip to content

Commit

Permalink
Merge pull request #76 from dell/mg/release-gpg-key-update
Browse files Browse the repository at this point in the history
Updated gpg key for release workflow
  • Loading branch information
mgandharva authored Jan 13, 2025
2 parents 7495d7b + 3f407c3 commit dab7c8e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dab7c8e

Please sign in to comment.