Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: automation with github action#102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
adrianliaw merged 2 commits intopython:3.9frommattwang44:automated-with-gh-action
Sep 7, 2021

Conversation

mattwang44
Copy link
Collaborator

@mattwang44mattwang44 commentedSep 5, 2021
edited
Loading

Purpose

This PR tend to automate several tasks with github action:

  • Pulling latest source strings fromCPython daily and make the change as a PR (only support branch3.9).
  • Launch build flow during a pull request is opened (supported base branch:3.7,3.8, &3.9).
  • Deploy to github page if any change is pushed to main branch (current:3.9).

Preview

These workflows are tested in my forked repo. One can check it out and learn how it works before merging this PR:

Caution

  • Need@adrianliaw's help to setup github page (configure branch asgh-pages and folder as root).
    image
  • To successfully deploy the site to github page, an empty file named.nojekyll is required to be committed togh-pages branch after this PR is merged. It prevents github page from ignoring folders that start with underscores, which makes it failed to load css/js files (seethis reference andthis blog for details).

@josixjosix self-requested a reviewSeptember 5, 2021 07:36
@mattwang44mattwang44 marked this pull request as ready for reviewSeptember 5, 2021 10:30
Copy link
Collaborator

@josixjosix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! Thank you@mattwang44

mattwang44 reacted with rocket emoji
@adrianliawadrianliaw merged commite0d7814 intopython:3.9Sep 7, 2021
@@ -22,20 +22,20 @@ LC_MESSAGES := $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
VENV := ~/.venvs/python-docs-i18n/
PYTHON := $(shell which python3)
MODE := autobuild-dev-html
BRANCH = $(shell git describe --contains --all HEAD)
BRANCH:= $(or $(VERSION), $(shell git describe --contains --all HEAD))
Copy link
CollaboratorAuthor

@mattwang44mattwang44Oct 21, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Before this change, make commands would fail if run on branches other than3.7,3.8,3.9 etc. It allows users to run Makefile commands on branches with customized name by inserting an argument namedVERSION.

VERSION=3.9 make

josix reacted with thumbs up emoji
@mattwang44mattwang44 mentioned this pull requestOct 21, 2021
beccalzh pushed a commit to beccalzh/python-docs-zh-tw that referenced this pull requestSep 4, 2024
* Pulling latest source strings from CPython daily and make the change as a PR (only support branch 3.9).  * Maintainer should resolve the fuzzy entries before merging it.  * If the PR for this task is existed, changes will be forced-push to the existing branch (checkout peter-evans/create-pull-request@v3).* Launch build flow during a pull request is opened (supported base branch: 3.7, 3.8, & 3.9).* Deploy to github page if any change is pushed to main branch (current: 3.9).
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@josixjosixjosix approved these changes

@adrianliawadrianliawAwaiting requested review from adrianliaw

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mattwang44@josix@adrianliaw

[8]ページ先頭

©2009-2025 Movatter.jp