{"title":"GitHub Actions 中解压 Zip 文件到当前目录","description":"本指南介绍如何在 GitHub Actions 中使用 unzip 命令将 Zip 文件解压到当前目录。提供示例工作流文件,方便你快速上手。","keywords":"GitHub Actions, Zip 文件, 解压, unzip 命令, 工作流文件","content":"在 GitHub Action 中,可以使用 unzip 命令解压 zip 文件到当前目录下。以下是一个示例的工作流文件:\n\nyaml\nname: Unzip file\n\non:\n push:\n branches:\n - main\n\njobs:\n unzip:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout code\n uses: actions/checkout@v2\n\n - name: Unzip file\n run: unzip path/to/zipfile.zip\n\n\n在上面的示例中,unzip 命令会将 path/to/zipfile.zip 文件解压到当前目录下。你可以根据实际情况将路径替换为你的 zip 文件路径。"}

GitHub Actions 中解压 Zip 文件到当前目录

原文地址: https://www.cveoy.top/t/topic/pWv0 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录