From 4bf354c197e834f563046da9fe2140b23a9faf80 Mon Sep 17 00:00:00 2001 From: Pauline Date: Tue, 26 Dec 2023 21:45:13 +0100 Subject: feat(actions): bump deps and use new artifact api --- .github/actions/publish-artifacts/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to '.github/actions/publish-artifacts/index.ts') diff --git a/.github/actions/publish-artifacts/index.ts b/.github/actions/publish-artifacts/index.ts index c21ce71..eb7cb46 100644 --- a/.github/actions/publish-artifacts/index.ts +++ b/.github/actions/publish-artifacts/index.ts @@ -1,4 +1,4 @@ -import * as artifact from '@actions/artifact'; +import artifact from '@actions/artifact'; import * as core from '@actions/core'; import * as glob from '@actions/glob'; import * as io from '@actions/io'; @@ -51,8 +51,6 @@ const ARTIFACTS_DIR = '.artifacts'; const ARTIFACT_BASE = `Nexus-${OS}-${ARCH}`; const UPDATER_ARTIFACT_NAME = `Nexus-Updater-${OS}-${ARCH}`; -const client = artifact.create(); - // globby glob globber :3 async function globFiles(pattern: string) { const globber = await glob.create(pattern); @@ -71,7 +69,7 @@ async function uploadUpdater({ bundle, ext }: TargetConfig) { await io.cp(updaterPath, artifactPath); await io.cp(`${updaterPath}.sig`, `${artifactPath}.sig`); - await client.uploadArtifact( + await artifact.uploadArtifact( UPDATER_ARTIFACT_NAME, [artifactPath, `${artifactPath}.sig`], ARTIFACTS_DIR, @@ -89,7 +87,7 @@ async function uploadStandalone({ bundle, ext }: TargetConfig) { const artifactPath = `${ARTIFACTS_DIR}/${artifactName}`; await io.cp(standalonePath, artifactPath, { recursive: true }); - await client.uploadArtifact(artifactName, [artifactPath], ARTIFACTS_DIR); + await artifact.uploadArtifact(artifactName, [artifactPath], ARTIFACTS_DIR); } async function run() { -- cgit