mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-01-04 09:29:44 -06:00
added GPG Import for signing
This commit is contained in:
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@@ -41,12 +41,19 @@ jobs:
|
||||
working-directory: ./frontend
|
||||
run: npm install
|
||||
|
||||
- name: Import GPG key
|
||||
run: |
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
|
||||
git config --global user.signingkey "$GPG_KEY_ID"
|
||||
git config --global commit.gpgsign true
|
||||
git config --global user.name "GitHub Actions"
|
||||
git config --global user.email "actions@github.com"
|
||||
env:
|
||||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git config --global user.signingkey $GITHUB_GPG_KEY
|
||||
git config --global commit.gpgsign true
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@github.com"
|
||||
git add ./backend/pom.xml ./frontend/package.json ./frontend/package-lock.json
|
||||
git commit -S -m "Bump version to ${{ github.event.inputs.version }}"
|
||||
git tag -s v${{ github.event.inputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user