mirror of
https://github.com/Arlind-dev/sulej.ch.git
synced 2025-12-01 01:25:14 +01:00
chore(ci): add signed commits
This commit is contained in:
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
@@ -24,6 +24,27 @@ jobs:
|
|||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Import GPG key and configure signing
|
||||||
|
env:
|
||||||
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
|
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
|
run: |
|
||||||
|
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
|
||||||
|
KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep sec | tail -n1 | awk '{print $2}' | cut -d'/' -f2)
|
||||||
|
|
||||||
|
echo "use-agent" >> ~/.gnupg/gpg.conf
|
||||||
|
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
|
||||||
|
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
|
||||||
|
|
||||||
|
git config --global user.signingkey "$KEY_ID"
|
||||||
|
git config --global commit.gpgsign true
|
||||||
|
git config --global gpg.program gpg
|
||||||
|
git config --global gpg.format openpgp
|
||||||
|
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
echo "test" | gpg --batch --yes --passphrase "$GPG_PASSPHRASE" --pinentry-mode loopback -u "$KEY_ID" -s >/dev/null
|
||||||
|
|
||||||
|
echo "Using GPG key: $KEY_ID"
|
||||||
|
|
||||||
- name: Run semantic-release
|
- name: Run semantic-release
|
||||||
id: semantic
|
id: semantic
|
||||||
@@ -38,7 +59,10 @@ jobs:
|
|||||||
conventional-changelog-conventionalcommits
|
conventional-changelog-conventionalcommits
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GIT_AUTHOR_NAME: semantic-release-bot
|
||||||
|
GIT_COMMITTER_NAME: semantic-release-bot
|
||||||
|
GIT_AUTHOR_EMAIL: arlind@sulej.ch
|
||||||
|
GIT_COMMITTER_EMAIL: arlind@sulej.ch
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs: release
|
needs: release
|
||||||
@@ -97,4 +121,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Trigger Cloudflare Pages deploy
|
- name: Trigger Cloudflare Pages deploy
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "${{ secrets.CF_DEPLOY_HOOK_URL }}"
|
curl -X POST "${{ secrets.CF_DEPLOY_HOOK_URL }}"
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# sulej.ch
|
# sulej.ch
|
||||||
|
|
||||||
Welcome to the official repository of **[sulej.ch](https://sulej.ch/)**, my personal website.
|
Welcome to the official repository of **[sulej.ch](https://sulej.ch/)**, my personal website.
|
||||||
|
|
||||||
I have future plans for this repository, but that is a project for the future.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user