Skip to main content

173 搜索结果 "runs-on"

参与编写 GitHub Docs / 为 GitHub Docs 编写内容 /

批注代码示例

Post welcome comment # Configures the operating system the job runs on. runs-on: ubuntu-latest # The `run` keyword tells the job to execute a command on

GitHub Actions / 写入工作流 / 选择工作流执行的操作 /

在变量中存储信息

day on: workflow_dispatch env: DAY_OF_WEEK: Monday jobs: greeting_job: runs-on: ubuntu-latest env: Greeting: Hello steps: - name: "Say Hello Mona

GitHub Actions / 用例和示例 / 部署 /

将 PHP 部署到 Azure App Service

this to the PHP version to use on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup PHP uses:

GitHub Actions / 自托管运行程序 / 操作运行器控制器 /

操作运行器控制器快速入门

配置中的值在终端中运行以下命令。 运行命令时,请记住以下事项。 仔细更新 INSTALLATION_NAME 值。 在工作流中,将使用安装名称作为 runs-on 的值。 有关详细信息,请参阅“GitHub Actions 的工作流语法”。 将 NAMESPACE 值更新为希望创建运行器 Pod 的位置。

GitHub Actions / 用例和示例 / 生成和测试 /

构建和测试 Swift

[ubuntu-latest, macos-latest] swift: ["5.2", "5.3"] runs-on: ${{ matrix.os }} steps: - uses: swift-actions/setup-swift@65540b95f514

GitHub Actions / 用例和示例 / 生成和测试 /

构建和测试 Xamarin 应用程序

版本并构建 Xamarin.iOS 应用程序。 name: Build Xamarin.iOS app on: [push] jobs: build: runs-on: macos-latest steps: - uses: actions/checkout@v4 - name: Set default Xamarin

GitHub Actions / 用例和示例 / 发布包 /

使用 Gradle 发布 Java 包

the Maven Central Repository on: release: types: [created] jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Java uses:

GitHub Actions / 安全性 / 安全强化部署 /

在 Google Cloud Platform 中配置 OpenID Connect

branches: - main permissions: id-token: write jobs: Get_OIDC_ID_token: runs-on: ubuntu-latest steps: - id: 'auth' name: 'Authenticate to GCP' uses: 'g

GitHub Actions / 用例和示例 / 生成和测试 /

构建和测试 .NET

setup-dotnet 一文。 使用多个 .NET 版本 name: dotnet package on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: dotnet-version: [ '3.1.x', '6.0.x' ] steps:

GitHub Actions / 用例和示例 / 项目管理 /

向议题添加标签

Label issues on: issues: types: - reopened - opened jobs: label_issues: runs-on: ubuntu-latest permissions: issues: write steps: - run: gh issue edit "$NUMBER"