GitHub Actions 的指南
GitHub Actions 的这些指南包含具体的使用案例和示例来帮助您配置工作流程。
GitHub Actions 学习路径
GitHub Actions 快速入门
快速入门在 5 分钟或更短的时间内尝试 GitHub Actions 的功能。
- Fundamentals
了解 GitHub Actions
概述学习 GitHub Actions 的基础知识,包括核心概念和基本术语。
- Fundamentals
创建 Docker 容器操作
教程本指南向您展示构建 Docker 容器操作所需的最少步骤。
- Action development
- Docker
使用入门工作流程
教程GitHub 为各种语言和工具提供入门工作流程。
- Workflows
- CI
- CD
Building and testing Python
教程You can create a continuous integration (CI) workflow to build and test your Python project.
- CI
- Python
Building and testing Node.js
教程You can create a continuous integration (CI) workflow to build and test your Node.js project.
- CI
- Node
- JavaScript
About packaging with GitHub Actions
概述You can set up workflows in GitHub Actions to produce packages and upload them to GitHub Packages or another package hosting provider.
- Packaging
Publishing Docker images
教程You can publish Docker images to a registry, such as Docker Hub or GitHub Packages, as part of your continuous integration (CI) workflow.
- Packaging
- Publishing
- Docker
缓存依赖项以加快工作流程
教程为了使工作流程更快、更高效,可以为依赖项及其他经常重复使用的文件创建和使用缓存。
- Workflows
关于持续集成
概述您可以直接在 GitHub 仓库中通过 GitHub Actions 创建自定义持续集成 (CI) 工作流程。
- CI
Building and testing PowerShell
教程You can create a continuous integration (CI) workflow to build and test your PowerShell project.
- CI
- PowerShell
Building and testing Ruby
教程You can create a continuous integration (CI) workflow to build and test your Ruby project.
- CI
- Ruby
Building and testing Java with Maven
教程You can create a continuous integration (CI) workflow in GitHub Actions to build and test your Java project with Maven.
- CI
- Java
- Maven
Building and testing Java with Gradle
教程You can create a continuous integration (CI) workflow in GitHub Actions to build and test your Java project with Gradle.
- CI
- Java
- Gradle
Building and testing Java with Ant
教程You can create a continuous integration (CI) workflow in GitHub Actions to build and test your Java project with Ant.
- CI
- Java
- Ant
Building and testing Swift
教程You can create a continuous integration (CI) workflow to build and test your Swift project.
- CI
- Swift
Installing an Apple certificate on macOS runners for Xcode development
教程You can sign Xcode apps within your continuous integration (CI) workflow by installing an Apple code signing certificate on GitHub Actions runners.
- CI
- Xcode
Building and testing Xamarin applications
教程You can create a continuous integration (CI) workflow in GitHub Actions to build and test your Xamarin application.
- CI
- Xamarin
- Xamarin.iOS
- Xamarin.Android
- Android
- iOS
Publishing Node.js packages
教程You can publish Node.js packages to a registry as part of your continuous integration (CI) workflow.
- Packaging
- Publishing
- Node
- JavaScript
Publishing Java packages with Maven
教程You can use Maven to publish Java packages to a registry as part of your continuous integration (CI) workflow.
- Packaging
- Publishing
- Java
- Maven
Publishing Java packages with Gradle
教程You can use Gradle to publish Java packages to a registry as part of your continuous integration (CI) workflow.
- Packaging
- Publishing
- Java
- Gradle
将工作流程数据存储为构件
教程构件允许您在工作流程完成后,分享工作流程中作业之间的数据并存储数据。
- Workflows
About service containers
概述You can use service containers to connect databases, web services, memory caches, and other tools to your workflow.
- Containers
- Docker
Creating Redis service containers
教程You can use service containers to create a Redis client in your workflow. This guide shows examples of creating a Redis service for jobs that run in containers or directly on the runner machine.
- Containers
- Docker
Creating PostgreSQL service containers
教程You can create a PostgreSQL service container to use in your workflow. This guide shows examples of creating a PostgreSQL service for jobs that run in containers or directly on the runner machine.
- Containers
- Docker
Deploying to Amazon Elastic Container Service
教程You can deploy to Amazon Elastic Container Service (ECS) as part of your continuous deployment (CD) workflows.
- CD
- Containers
- Amazon ECS
Deploying to Google Kubernetes Engine
教程You can deploy to Google Kubernetes Engine as part of your continuous deployment (CD) workflows.
- CD
- Containers
- Google Kubernetes Engine
关于自定义操作
概述操作是可以组合来创建作业和自定义工作流程的单个任务。 您可以创建自己的操作,或者使用和自定义 GitHub 社区分享的操作。
- Action development
- Fundamentals
创建 JavaScript 操作
教程在本指南中,您将了解如何使用操作工具包构建 JavaScript 操作。
- Action development
- JavaScript
创建组合操作
教程在本指南中,您将学习如何构建组合操作。
- Action development
从 Azure Pelines 迁移到 GitHub Actions
教程GitHub Actions 和 Azure Pipelines 具有一些相似的配置,这使得迁移到 GitHub Actions 很简单。
- Azure Pipelines
- Migration
- CI
- CD
从 CircleCI 迁移到 GitHub Actions
教程GitHub Actions 和 CircleCI 在配置上具有若干相似之处,这使得迁移到 GitHub Actions 相对简单。
- CircleCI
- Migration
- CI
- CD
从 GitLab CI/CD 迁移到 GitHub Actions
教程GitHub Actions 和 GitLab CI/CD 具有一些相似的配置,这使得迁移到 GitHub Actions 很简单。
- GitLab
- Migration
- CI
- CD
从 Jenkins 迁移到 GitHub Actions
教程GitHub Actions 和 Jenkins 有多种相似之处,这使得迁移到 GitHub Actions 相对简单。
- Jenkins
- Migration
- CI
- CD
从 Travis CI 迁移到 GitHub Actions
教程GitHub Actions 和 Travis CI 有多个相似之处,这有助于很简便地迁移到 GitHub Actions。
- Travis CI
- Migration
- CI
- CD
Using GitHub Actions for project management
概述You can use GitHub Actions to automate many of your project management tasks.
- Project management
Closing inactive issues
教程You can use GitHub Actions to comment on or close issues that have been inactive for a certain period of time.
- Workflows
- Project management
Scheduling issue creation
教程You can use GitHub Actions to create an issue on a regular basis for things like daily meetings or quarterly reviews.
- Workflows
- Project management
Adding labels to issues
教程You can use GitHub Actions to automatically label issues.
- Workflows
- Project management
Commenting on an issue when a label is added
教程You can use GitHub Actions to automatically comment on issues when a specific label is applied.
- Workflows
- Project management
Moving assigned issues on 项目(经典)
教程You can use GitHub Actions to automatically move an issue to a specific column on a 项目(经典) when the issue is assigned.
- Workflows
- Project management
Removing a label when a card is added to a 项目(经典) column
教程You can use GitHub Actions to automatically remove a label when an issue or pull request is added to a specific column on a 项目(经典).
- Workflows
- Project management
通过 GitHub Actions 自动化 Dependabot
操作指南如何使用 GitHub Actions 来自动执行常见 Dependabot 相关任务的示例。
- Actions
- Dependabot
- Version updates
- Security updates
- Repositories
- Dependencies
- Pull requests
使用 Dependabot 保持操作的最新状态
操作指南您可以使用 Dependabot 来确保您使用的操作更新到最新版本。
- Repositories
- Dependabot
- Version updates
- Actions
Deploying Docker to Azure App Service
教程You can deploy a Docker container to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Containers
- Docker
- Azure App Service
Deploying Java to Azure App Service
教程You can deploy your Java project to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Java
- Azure App Service
Deploying .NET to Azure App Service
教程You can deploy your .NET project to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Azure App Service
Deploying Node.js to Azure App Service
教程You can deploy your Node.js project to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Node
- JavaScript
- Azure App Service
Deploying PHP to Azure App Service
教程You can deploy your PHP project to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Azure App Service
Deploying Python to Azure App Service
教程You can deploy your Python project to Azure App Service as part of your continuous deployment (CD) workflows.
- CD
- Python
- Azure App Service
Deploying to Azure Static Web App
教程You can deploy your web app to Azure Static Web App as part of your continuous deployment (CD) workflows.
- CD
- Azure Static Web Apps
Deploying to Azure Kubernetes Service
教程You can deploy your project to Azure Kubernetes Service (AKS) as part of your continuous deployment (CD) workflows.
- CD
- Azure Kubernetes Service