Skip to content

Commit

Permalink
Moving out of separate action.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgagne committed Aug 24, 2024
1 parent 9507391 commit 66d75d0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/actions/buildresources/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ runs:

- uses: ./.github/actions/setupconda

- name: Print token to file.
shell: bash
run: |
echo "Token: ${NCDC_CDO_TOKEN}"
echo ${NCDC_CDO_TOKEN} > ./book/tutorials/NCEI_Tutorial/token.txt
env:
NCDC_CDO_TOKEN: ${{ inputs.ncdc-cdo-token }}


- name: Build JupyterBook
shell: bash -l {0}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build_website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
branches:
- main

env:
NCDC_CDO_TOKEN: ${{ secrets.NCDC_CDO_TOKEN }}

jobs:
build-and-test:
# This workflow accesses secrets (~/.netrc) so only run if labelled by repo owner
Expand All @@ -35,6 +38,12 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Print token to file.
shell: bash -l {0}
run: |
echo "Token: ${NCDC_CDO_TOKEN}"
echo ${NCDC_CDO_TOKEN} > ./book/tutorials/NCEI_Tutorial/token.txt
- uses: ./.github/actions/buildresources
with:
jb-cache: false
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
branches:
- main

env:
NCDC_CDO_TOKEN: ${{ secrets.NCDC_CDO_TOKEN }}

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -28,6 +31,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Print token to file.
shell: bash -l {0}
run: |
echo "Token: ${NCDC_CDO_TOKEN}"
echo ${NCDC_CDO_TOKEN} > ./book/tutorials/NCEI_Tutorial/token.txt
- uses: ./.github/actions/buildresources
with:
jb-cache: false
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/netlifypreview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Print token to file.
shell: bash -l {0}
run: |
echo "Token: ${NCDC_CDO_TOKEN}"
echo ${NCDC_CDO_TOKEN} > ./book/tutorials/NCEI_Tutorial/token.txt
- uses: ./.github/actions/buildresources
with:
jb-cache: false
Expand Down

0 comments on commit 66d75d0

Please sign in to comment.