diff options
author | Pauline <git@ethanlibs.co> | 2023-12-26 21:45:13 +0100 |
---|---|---|
committer | Pauline <git@ethanlibs.co> | 2023-12-26 21:45:13 +0100 |
commit | 4bf354c197e834f563046da9fe2140b23a9faf80 (patch) | |
tree | a4be46a66e16dd212d58c39845b9992c3fa9552b /.github/actions/publish-artifacts/index.ts | |
parent | 1ec972a8aad20605d28616b4f88781d6b7985021 (diff) | |
download | Nexus-4bf354c197e834f563046da9fe2140b23a9faf80.tar.gz Nexus-4bf354c197e834f563046da9fe2140b23a9faf80.tar.bz2 Nexus-4bf354c197e834f563046da9fe2140b23a9faf80.zip |
feat(actions): bump deps and use new artifact api
Diffstat (limited to '.github/actions/publish-artifacts/index.ts')
-rw-r--r-- | .github/actions/publish-artifacts/index.ts | 8 |
1 files changed, 3 insertions, 5 deletions
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() { |