Skip to content

Commit

Permalink
No longer use the pyviz-developers service account (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Jan 18, 2024
1 parent e825ae6 commit 9093f23
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- cron: "0 8 * 1-12 1" # Every monday at 8 am
workflow_dispatch:

permissions:
# To allow the workflow to push to the origin, when actions/checkout is used.
contents: write

jobs:
pre_ci:
runs-on: 'ubuntu-latest'
Expand Down Expand Up @@ -51,31 +55,28 @@ jobs:
miniconda-version: "latest"
- name: conda setup
run: |
eval "$(conda shell.bash hook)"
conda install anaconda-project
anaconda-project prepare
- name: Build cache
run: |
eval "$(conda shell.bash hook)"
anaconda-project run build_cache
git config user.name github-actions
git config user.email [email protected]
mv ./doc/_static/cache ./tmp
git fetch "https://github.com/$GITHUB_REPOSITORY.git" cache:refs/remotes/cache
git fetch origin cache
git checkout cache
mv ./tmp/* ./doc/_static/cache
git add -f ./doc/_static/cache
ls ./doc/_static/cache
git commit -m "adding cached badges"
git push -f "https://pyviz-developers:[email protected]/$GITHUB_REPOSITORY.git" HEAD:cache
git push -f HEAD:cache
- uses: actions/checkout@v3
with:
clean: false
- name: Build website
run: |
eval "$(conda shell.bash hook)"
git checkout -b deploy-tmp
git fetch "https://github.com/$GITHUB_REPOSITORY.git" cache:refs/remotes/cache # all cached badges are in this branch
git fetch origin cache # all cached badges are in this branch
git checkout cache -- ./doc/_static/cache
anaconda-project run build_website
- name: git status
Expand Down

0 comments on commit 9093f23

Please sign in to comment.