zip - Download and unzip file from URL with Github Action - Stack Overflow
I'm setting up a github testing action that requires a plugin to be run. I want it to download and unzip the zip file from this link. I've tried looking for a way to do this and haven't found a way.
This is my current code:
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'
distribution: 'oracle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
path: build/libs/*.jar
test:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: extra-plugins/
merge-multiple: true
- name: Run tests
uses: SkriptLang/[email protected]
with:
test_script_directory: src/test/scripts
skript_repo_ref: dev/patch
extra_plugins_directory: extra-plugins/
This is to run a Minecraft Server Instance. I need it to put the jar file within the zip located at the path archive/dist/target/ into the extra plugins directory shown in the last line of code.
最新文章
- 苹果兜售没用软件脸不红心不跳
- python - tensorflow-gpu installation failed in colab - Stack Overflow
- reactjs - NPM SEMANTIC RELEASE | MAINTENANCE BRANCH - Stack Overflow
- swiftui - Ambiguous Init warning that doesn't make sense - Stack Overflow
- amazon web services - azure pipeline ec2 inventory creation - Stack Overflow
- laravel - User in routesweb.php is not syncronized with User in appHttpControllersAuthControllers.php - Stack Overflow
- c++ - Changing STL container (std::string) values in debugger - Stack Overflow
- node.js - Cors errors S3 Upload node - Stack Overflow
- d3.js - d3 - graph is rendered outside the svg - Stack Overflow
- kotlin - Do I need Serialization to Transfer a MutableMap Between Minecraft Server and Client? If so, How Should I Serialize It?
- swiftui - Cannot access generic subscript - Stack Overflow
- arrays - Visual Studio 2022 - Fortran - Debugging Issue - Stack Overflow
- kotlin - How to add SerialName annotation for a DTO class - Stack Overflow
- php - How to return blob in Joomla 5 API - Stack Overflow
- html - django multi-level template extending - Stack Overflow
- vba - Excel Macro to rename tabs is failing on the second run - Stack Overflow
- Excel VBA Overwrite Cells IF - Stack Overflow