Skip to content

Commit

Permalink
add secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 14, 2024
1 parent 8f66b45 commit 632bf69
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ jobs:
- get-test-infos

uses: ./.github/workflows/release_parallel.yml
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} # All commits must be verified
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 12 additions & 6 deletions .github/workflows/release_parallel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Parallel Release
on:
workflow_call:
secrets:
GPG_SIGNING_KEY:
required: true
GH_TOKEN:
required: true

jobs:
prepare-release:
Expand Down Expand Up @@ -63,6 +68,7 @@ jobs:
# git add --all
# git commit -m "Prepare release ${{ steps.get-version.outputs.release-version }}"
# git push origin "${{ github.event.pull_request.head.ref || github.ref_name }}"

# TODO we should use some Action-specific bot account
- name: Configure git for publishing release
run: |
Expand All @@ -71,12 +77,12 @@ jobs:
git config --global user.email '[email protected]'
git config --global commit.gpgsign true
echo "GPG_SIGNING_KEY length: ${#GPG_SIGNING_KEY}"
# echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
# if [ $? -ne 0 ]; then
# echo "GPG key import failed"
# exit 1
# fi
# git config --global user.signingkey C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
if [ $? -ne 0 ]; then
echo "GPG key import failed"
exit 1
fi
git config --global user.signingkey C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
- name: Update version and build templates
run: |
Expand Down

0 comments on commit 632bf69

Please sign in to comment.