Skip to content

Commit

Permalink
CI: Try to set job env to override PATH, use pipe for base64 instead …
Browse files Browse the repository at this point in the history
…of unknown --output
  • Loading branch information
Simran-B authored Dec 4, 2024
1 parent 240fa73 commit a31cfcc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,17 @@ jobs:

steps:
- name: Install Node.js 16
id: node16
run: |
$DOWNLOAD_TOOL https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
DOWNLOAD_TOOL https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz
tar -xf node-v16.20.2-linux-x64.tar.xz
PATH="$(pwd)/node-v16.20.2-linux-x64/bin:$PATH"
node --version
echo "PATH=$PATH" >> "$GITHUB_ENV"
echo "path=${PATH}" >> $GITHUB_OUTPUT
- name: Checkout Source Code
env:
PATH: ${{ steps.node16.outputs.path }}
uses: actions/checkout@v3
with:
submodules: true
Expand Down Expand Up @@ -142,6 +145,8 @@ jobs:
echo "artifact=${basename/x86_64/Linux-x86_64-${{ matrix.cc-compiler }}}" >> $GITHUB_OUTPUT
- name: Upload Artifact to GitHub
env:
PATH: ${{ steps.node16.outputs.path }}
uses: actions/upload-artifact@v3
continue-on-error: true
with:
Expand Down Expand Up @@ -447,7 +452,7 @@ jobs:
KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
# import certificate from secrets
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode > $CERTIFICATE_PATH
# create temporary keychain
security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
Expand Down

0 comments on commit a31cfcc

Please sign in to comment.