공식 사이트
공식 문서
설정파일에 맞춰 workflow를 자동화 해줍니다.
요렇게 Actions 탭에 들어가 시작할 수 있습니다.
Workflow 파일은 yml 확장자로 작성되며,
해당 레포지토리의 .github/workflows
폴더 아래에 저장됩니다.
Simple workflow의 Configure를 누르면 자동으로 주어지는 예시 파일
예시로 주어진 파일만 간단하게 분석해보기~!
설정 가능한 것들 (키워드):
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Run a one-line script
run:
더 많은 문서는 →→ "Configuring workflows."