Skip to content

Commit

Permalink
Merge pull request #697 from chinapandaman/PPF-696
Browse files Browse the repository at this point in the history
PPF-696: update release issue and PR, update release script for codespaces
  • Loading branch information
chinapandaman authored Jul 13, 2024
2 parents 8814f29 + a5fd056 commit b9f3231
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/dev_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A PyPDFForm release starts with the following steps:

* A release [issue](https://github.com/chinapandaman/PyPDFForm/issues/646) and [PR](https://github.com/chinapandaman/PyPDFForm/pull/647).
* A release [issue](https://github.com/chinapandaman/PyPDFForm/issues/686) and [PR](https://github.com/chinapandaman/PyPDFForm/pull/687).
* A new [GitHub release](https://github.com/chinapandaman/PyPDFForm/releases) with auto-generated changelogs.

Once these steps are done, the CI for deployment will be triggered.
Expand Down
9 changes: 8 additions & 1 deletion scripts/create_release.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
"""Creates a GitHub release."""

import os
import re
import sys
from getpass import getpass
Expand All @@ -17,7 +18,13 @@
sys.exit(f"v{latest_version} is already deployed.")

print(f"Bumping to: v{version}")
token = getpass("Enter GitHub Token: ")
token = os.environ.get("GITHUB_TOKEN")
if not token:
token = getpass("Enter GitHub Token: ")
else:
cont = input("Enter Yes to continue: ")
if cont != "Yes":
sys.exit("Aborted.")

url = "https://api.github.com/repos/chinapandaman/PyPDFForm/releases"
headers = {
Expand Down

0 comments on commit b9f3231

Please sign in to comment.