Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction to publish_docs workflow for branches #1253

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ jobs:
repository: ${{ vars.GITHUB_REPOSITORY }}
fetch-depth: 0

- name: Track all branches
shell: bash
run: |
git config --global --add safe.directory /__w/AtomVM/AtomVM
for branch in `git branch -a | grep "remotes/origin" | grep -v HEAD | grep -v "${{ github.ref_name }}"`; do
git branch --track ${branch#remotes/origin/} $branch
done

- name: Build Site
shell: bash
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ jobs:
ref: Production
path: /home/runner/work/AtomVM/AtomVM/www

- name: Track all branches
shell: bash
run: |
git config --global --add safe.directory /__w/AtomVM/AtomVM
for branch in `git branch -a | grep "remotes/origin" | grep -v HEAD | grep -v "${{ github.ref_name }}" `; do
git branch --track ${branch#remotes/origin/} $branch
done

- name: Build Site
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ for tag in tag_list:
versions.append(tag.name)
release_list.append(tag.name)

omit_branch_list = ('release-0.5')
omit_branch_list = [ 'release-0.5' ]
branch_list = sorted(repo.branches, key=lambda t: t.commit.committed_datetime)
for branch in branch_list:
if branch.name not in omit_branch_list:
Expand Down
Loading