Skip to content

Commit

Permalink
move zenodo url to env for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Nov 15, 2024
1 parent 22b158c commit b76537d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ jobs:
- name: Upload to zenodo
env:
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
ZENODO_URL: "https://zenodo.org"
shell: bash -l {0}
run: |
bzip2 tmp.sqlite
Expand Down
2 changes: 1 addition & 1 deletion zenodo_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
parser.add_argument("--title", "-t")
parser.add_argument("files", nargs="+")

URL = "https://zenodo.org"
URL = os.environ["ZENODO_URL"]
TOKEN = os.environ["ZENODO_TOKEN"]

HEADERS = {"Authorization": f"Bearer {TOKEN}"}
Expand Down

0 comments on commit b76537d

Please sign in to comment.