added gpg signing for new tags
This commit is contained in:
parent
cfeec53997
commit
9508835d00
2 changed files with 9 additions and 2 deletions
|
@ -19,6 +19,12 @@ jobs:
|
|||
git config --global user.name "GalacticFactory"
|
||||
git config --global user.email "contact@galacticfactory.cc"
|
||||
|
||||
- name: Import GPG key
|
||||
uses: actions/gpg@v4
|
||||
with:
|
||||
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase : ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
- name: Extract commit message
|
||||
id: extract_commit_message
|
||||
run: echo "::set-output name=message::$(git log --format=%B -n 1 $GITHUB_SHA)"
|
||||
|
@ -43,7 +49,7 @@ jobs:
|
|||
if: steps.check_commit_message.outputs.version
|
||||
run: |
|
||||
VERSION=${{ steps.check_commit_message.outputs.version }}
|
||||
git tag -a $VERSION -m "version bumped to $VERSION"
|
||||
git tag -sa $VERSION -m "version bumped to $VERSION"
|
||||
git push origin $VERSION
|
||||
|
||||
- name: Update latest tag
|
||||
|
@ -51,5 +57,5 @@ jobs:
|
|||
run: |
|
||||
COMMIT_MESSAGE=$(echo "${{ steps.extract_commit_message.outputs.message }}")
|
||||
LATEST_TAG=${{ steps.check_commit_message.outputs.latest_tag }}
|
||||
git tag -fa $LATEST_TAG -m "$COMMIT_MESSAGE"
|
||||
git tag -fsa $LATEST_TAG -m "$COMMIT_MESSAGE"
|
||||
git push origin $LATEST_TAG --force
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@
|
|||
.cache
|
||||
/site
|
||||
.venv/
|
||||
temp.sh
|
||||
|
|
Reference in a new issue