File tree 2 files changed +13
-6
lines changed
2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 6
6
paths :
7
7
- ' entries/**'
8
8
- ' img/**'
9
+ - ' scripts/*'
9
10
10
11
concurrency :
11
12
group : ' publish'
22
23
runs-on : ubuntu-latest
23
24
steps :
24
25
- uses : actions/checkout@v4
26
+ with :
27
+ fetch-depth : ' 2'
25
28
26
29
- name : Set up Node.js
27
30
uses : actions/setup-node@v4
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Load environment variables
4
- source .env
3
+ # Create a temporary file to track the status
4
+ STATUS_FILE=$( mktemp)
5
+ echo 0 > " $STATUS_FILE "
5
6
6
7
sign_and_verify () {
7
8
local f=" $1 "
8
9
echo " $f .sig"
9
10
echo " $PGP_PASSWORD " | gpg --yes --passphrase --local-user " $PGP_KEY_ID " --output " $f .sig" --sign " $f " 2> /dev/null
10
- gpg --verify " $f .sig" 2> /dev/null
11
- if [ $? -ne 0 ]; then
12
- echo " ::error f=$f :: File signing failed"
13
- exit 1
11
+ if ! gpg --verify " $f .sig" 2> /dev/null; then
12
+ echo " ::error f=$f :: File signing failed for $f "
13
+ echo 1 > " $STATUS_FILE "
14
14
fi
15
15
}
16
16
21
21
22
22
# Wait for all background processes to complete
23
23
wait
24
+
25
+ STATUS=$( cat " $STATUS_FILE " )
26
+ rm " $STATUS_FILE "
27
+ exit " $STATUS "
You can’t perform that action at this time.
0 commit comments