diff --git a/.gitea/workflows/autotagger.yaml b/.gitea/workflows/autotagger.yaml index 140679f..e0b2d3d 100644 --- a/.gitea/workflows/autotagger.yaml +++ b/.gitea/workflows/autotagger.yaml @@ -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 diff --git a/.gitignore b/.gitignore index 01790a3..ec221ee 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .cache /site .venv/ +temp.sh