From 666f008fd40e42cd4f3dac334db93f2229b2acb0 Mon Sep 17 00:00:00 2001 From: KyowonJeong Date: Fri, 26 Apr 2024 11:50:26 +0200 Subject: [PATCH] Delete .github/workflows/test.yml --- .github/workflows/test.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 68746d1..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Download Artifact - -on: - workflow_dispatch: - -jobs: - download-artifact: - runs-on: windows-latest - steps: - - name: Download Artifact - run: | - $owner = "KyowonJeong" - $repo = "contrib" - $artifactName = "contrib_build-Window.tar.gz" - $destinationPath = "test" - - # Set up the GitHub token - $token = $env:GITHUB_TOKEN - - # Fetch the latest release information - $url = "https://api.github.com/repos/$owner/$repo/releases/latest" - $response = Invoke-RestMethod -Uri $url -Headers @{Authorization = "Bearer $token"} -Method Get - - # Extract the download URL for the artifact - $artifactUrl = ($response.assets | Where-Object {$_.name -eq $artifactName}).browser_download_url - - # Download the artifact - Invoke-WebRequest -Uri $artifactUrl -Headers @{Authorization = "Bearer $token"} -OutFile "$destinationPath\$artifactName"