-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add signature and shallow clones to nightly
Signed-off-by: simonsan <[email protected]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,14 @@ jobs: | |
shasum -a 256 $RELEASE_NAME > $RELEASE_NAME.sha256 | ||
fi | ||
########## create gpg signature ########## | ||
echo "${{ secrets.GPG_RELEASE_PRIVATE_KEY }}" > private.key | ||
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --pinentry-mode=loopback \ | ||
--passphrase-fd 0 --import private.key | ||
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --pinentry-mode=loopback \ | ||
--passphrase-fd 0 --local-user 12B7166D9FD59124416952E34018C5DE3BF8C081 \ | ||
--armor --output $RELEASE_NAME.asc --detach-sign $RELEASE_NAME | ||
echo "release_name=$RELEASE_NAME" >> $GITHUB_OUTPUT | ||
- name: Storing binary as artefact | ||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3 | ||
|
@@ -183,7 +191,7 @@ jobs: | |
GIT_SSH='ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts' | ||
# clone the repo into our working directory | ||
GIT_SSH_COMMAND=$GIT_SSH git clone [email protected]:rustic-rs/nightly.git $WORKING_DIR | ||
GIT_SSH_COMMAND=$GIT_SSH git clone [email protected]:rustic-rs/nightly.git --branch main --single-branch --depth 1 $WORKING_DIR | ||
# ensure destination directory exists | ||
mkdir -p $WORKING_DIR/$DEST_DIR | ||
|