Skip to content

Commit

Permalink
ci: add signature and shallow clones to nightly
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Sep 12, 2023
1 parent 129fcc0 commit 7137c31
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7137c31

Please sign in to comment.