diff --git a/.github/workflows/build_test.yaml b/.github/workflows/build_test.yaml new file mode 100644 index 0000000000..264a812d35 --- /dev/null +++ b/.github/workflows/build_test.yaml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the 3.9 branch + push: + branches: [ 3.9, ci ] + pull_request: + branches: [ 3.9 ] + + # 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: + 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@v2 + with: + path: python-docs-zh-tw + + # Checks-out cpython + - uses: actions/checkout@v2 + with: + repository: python/cpython + ref: 3.9 + path: cpython + + # Generate documents + - name: Run a one-line script + run: cd python-docs-zh-tw && make +