Skip to content

Commit 8aacbcd

Browse files
authored
fix: Rename ref to href and remove unknown argument in release.yml. (#7)
Signed-off-by: Josh <[email protected]>
1 parent aee2205 commit 8aacbcd

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,19 @@ jobs:
102102
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
103103
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
104104
run: |
105-
UUID=$(deno run -q ci create-distribution --branch $BRANCH --version $VERSION --package-name darwin-arm64 --description-file description.json)
106-
i f [ -z "$UUID" ]; then
105+
UUID=$(deno run -q ci create-distribution --branch $BRANCH --version $VERSION --description-file changelog.json)
106+
if [ -z "$UUID" ]; then
107107
echo "Failed to create release"
108108
exit 1
109109
fi
110110
111-
# Write the public and private keys to the environment
112-
echo
113-
114111
deno run ci add-distribution-package \
115112
--uuid $UUID \
116113
--package $(deno run -q ci get-path --package darwin-arm64) \
117114
--branch $BRANCH \
118115
--public-key public.key \
119-
--private-key private.key
120-
--target-operating-system macOS
116+
--private-key private.key \
117+
--target-operating-system macOS \
121118
--target-architecture arm64
122119
- name: Remove keys
123120
working-directory: ./ci

ci/src/build/disribute.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const ArtifactId = z.string().uuid();
4747

4848
const Artifact = z.object({
4949
id: ArtifactId,
50-
ref: z.string(),
50+
href: z.string(),
5151
hash: z.object({
5252
algorithm: HashingAlgorithm,
5353
value: z.string(),
@@ -270,7 +270,7 @@ const removeObsolete = (
270270
if (!artifact) continue; // This should never happen.
271271
newArtifactsMap.set(artifactId, {
272272
id: artifactId, // Always prefer the map id.
273-
ref: artifact.ref,
273+
href: artifact.href,
274274
hash: {
275275
algorithm: artifact.hash.algorithm,
276276
value: artifact.hash.value,
@@ -409,7 +409,7 @@ const createArtifact = async (
409409
// Return the artifact.
410410
return {
411411
id: artifactId,
412-
ref: artifactPath,
412+
href: '/' + artifactPath,
413413
hash: {
414414
algorithm: 'blake3',
415415
value: hashValue,

0 commit comments

Comments
 (0)