Skip to content

Commit

Permalink
Merge pull request #62 from fastly/artifact-fix
Browse files Browse the repository at this point in the history
Use new `@actions/artifact` API, resolves #60
  • Loading branch information
kailan authored Nov 18, 2024
2 parents f2872ba + 312537c commit 453fc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const core = require('@actions/core');
const exec = require('@actions/exec');
const artifact = require('@actions/artifact');
const { DefaultArtifactClient } = require("@actions/artifact");
const glob = require('@actions/glob');
const path = require('path');

Expand Down Expand Up @@ -37,6 +37,6 @@ async function uploadArtifact() {

const artifactName = path.parse(files[0]).name;

const artifactClient = artifact.create();
const artifactClient = new DefaultArtifactClient();
await artifactClient.uploadArtifact(artifactName, files, '.', {});
}

0 comments on commit 453fc37

Please sign in to comment.