Fixed a Build Issue
This commit is contained in:
@@ -91,7 +91,10 @@ jobs:
|
||||
KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||
KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# The act-runner executes `run` with sh (dash), not bash, so this
|
||||
# script has to stay posix - `set -o pipefail` for example dies
|
||||
# with "Illegal option -o pipefail" before anything else runs.
|
||||
set -eu
|
||||
|
||||
# Failing here is on purpose: a silently debug signed apk would be
|
||||
# installable once and never updatable afterwards.
|
||||
@@ -120,7 +123,7 @@ jobs:
|
||||
# must never go backwards.
|
||||
- name: Build the apk
|
||||
run: |
|
||||
set -euo pipefail
|
||||
set -eu
|
||||
|
||||
version="${{ github.ref_name }}"
|
||||
version="${version#v}"
|
||||
@@ -158,7 +161,7 @@ jobs:
|
||||
# access in a secret and use that instead.
|
||||
TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
set -eu
|
||||
|
||||
api="${{ github.server_url }}/api/v1/repos/${{ github.repository }}"
|
||||
asset="ac_web-${{ github.ref_name }}.apk"
|
||||
@@ -167,8 +170,9 @@ jobs:
|
||||
# for a manual re-run of the job.
|
||||
releaseId="${{ github.event.release.id }}"
|
||||
if [ -z "$releaseId" ] || [ "$releaseId" = "null" ]; then
|
||||
releaseId=$(curl -fsSL -H "Authorization: token $TOKEN" \
|
||||
"$api/releases/tags/${{ github.ref_name }}" | jq -r '.id')
|
||||
release=$(curl -fsSL -H "Authorization: token $TOKEN" \
|
||||
"$api/releases/tags/${{ github.ref_name }}")
|
||||
releaseId=$(printf '%s' "$release" | jq -r '.id')
|
||||
fi
|
||||
|
||||
curl -fsSL -X POST \
|
||||
|
||||
@@ -82,7 +82,10 @@ jobs:
|
||||
# access in a secret and use that instead.
|
||||
TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# The act-runner executes `run` with sh (dash), not bash, so this
|
||||
# script has to stay posix - `set -o pipefail` for example dies
|
||||
# with "Illegal option -o pipefail" before anything else runs.
|
||||
set -eu
|
||||
|
||||
api="${{ github.server_url }}/api/v1/repos/${{ github.repository }}"
|
||||
asset="ac_web-linux-x64-${{ github.ref_name }}.tar.gz"
|
||||
@@ -91,8 +94,9 @@ jobs:
|
||||
# for a manual re-run of the job.
|
||||
releaseId="${{ github.event.release.id }}"
|
||||
if [ -z "$releaseId" ] || [ "$releaseId" = "null" ]; then
|
||||
releaseId=$(curl -fsSL -H "Authorization: token $TOKEN" \
|
||||
"$api/releases/tags/${{ github.ref_name }}" | jq -r '.id')
|
||||
release=$(curl -fsSL -H "Authorization: token $TOKEN" \
|
||||
"$api/releases/tags/${{ github.ref_name }}")
|
||||
releaseId=$(printf '%s' "$release" | jq -r '.id')
|
||||
fi
|
||||
|
||||
curl -fsSL -X POST \
|
||||
|
||||
Reference in New Issue
Block a user