Skip to content

Commit 4854186

Browse files
committed
remove debug
1 parent 66586be commit 4854186

File tree

1 file changed

+17
-30
lines changed

1 file changed

+17
-30
lines changed

.github/workflows/generate-index.yml

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
jobs:
1717
generate-index:
1818
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: generator
1922

2023
steps:
2124
- name: Checkout repository
@@ -48,44 +51,28 @@ jobs:
4851
MBED_NANO_V: 2.2.0
4952

5053
- name: Install dependencies
51-
run: task poetry:install-deps
52-
53-
- name: Generate index
5454
run: |
55-
cd generator/
56-
poetry run ./generator.py -a $(which arduino-cli)
55+
cd $GITHUB_WORKSPACE
56+
task poetry:install-deps
5757
58+
- name: Generate index
59+
run: poetry run ./generator.py -a $(which arduino-cli)
60+
61+
# fix `gpg: signing failed: Inappropriate ioctl for device`
62+
# https://github.com/keybase/keybase-issues/issues/2798
5863
- name: Import GPG key
5964
run: |
6065
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 -di > private.key
6166
gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}" private.key
62-
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV # https://github.com/keybase/keybase-issues/issues/2798
63-
67+
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
68+
69+
# disable gpg pass prompt
70+
# https://stackoverflow.com/questions/49072403/suppress-the-passphrase-prompt-in-gpg-command
6471
- name: sign the json
65-
run: |
66-
ls -lah
67-
cd generator/
68-
ls -lah
69-
gpg --output boards/module_firmware_index.json.sig --detach-sign boards/module_firmware_index.json
72+
run: gpg --pinentry-mode=loopback --passphrase "${{ secrets.PASSPHRASE }}" --output boards/module_firmware_index.json.sig --detach-sign boards/module_firmware_index.json
7073

7174
- name: create the gzip
72-
run: |
73-
cd generator/
74-
gzip --keep boards/module_firmware_index.json
75+
run: gzip --keep boards/module_firmware_index.json
7576

7677
- name: s3 sync
77-
run: |
78-
cd generator/
79-
./s3Copy.sh . s3://arduino-downloads-prod-beagle/arduino-fwuploader
80-
81-
- name: Start SSH via Ngrok
82-
if: ${{ failure() }}
83-
run: curl -sL https://gist.githubusercontent.com/retyui/7115bb6acf151351a143ec8f96a7c561/raw/7099b9db76729dc5761da72aa8525f632d8875c9/debug-github-actions.sh | bash
84-
env:
85-
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
86-
USER_PASS: ${{ secrets.USER_PASS }}
87-
88-
- name: Don't kill instace
89-
if: ${{ failure() }}
90-
run: sleep 1h # Prevent to killing instance after failure
91-
78+
run: ./s3Copy.sh . s3://arduino-downloads-prod-beagle/arduino-fwuploader

0 commit comments

Comments
 (0)