-
Notifications
You must be signed in to change notification settings - Fork 61
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
Publishing workflow #742
Merged
Merged
Publishing workflow #742
Changes from 87 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
d0701be
add deploy_doc.yml
Edoardo-Pedicillo f86ad5b
rtd theme --> furo theme in conf.py
MatteoRobbiati 725a034
restoring ipynb outputs
MatteoRobbiati 3fd38ec
typo
Edoardo-Pedicillo 84dee3b
typo
Edoardo-Pedicillo 6770078
add python version
Edoardo-Pedicillo d45ab4e
change usable workflow name
Edoardo-Pedicillo b1c6a29
typo
Edoardo-Pedicillo be38055
typo
Edoardo-Pedicillo 7fa3527
typo
Edoardo-Pedicillo d696fd4
trigger workflow
Edoardo-Pedicillo 41130f4
trigger workflow
Edoardo-Pedicillo 15fcd02
Update .github/workflows/deploy_doc.yml
Edoardo-Pedicillo 01388e6
Update .github/workflows/deploy_doc.yml
Edoardo-Pedicillo db89e14
trigger workflow
Edoardo-Pedicillo 43d39a2
trigger workflow
Edoardo-Pedicillo eb2743b
change branch
Edoardo-Pedicillo 4d8755a
add workflow dispatch
Edoardo-Pedicillo 95a1715
add workflow dispatch: fix typo
Edoardo-Pedicillo de41b52
add workflow dispatch: fix typo
Edoardo-Pedicillo b3f9a7b
remove test_workflow from triggers
Edoardo-Pedicillo ed0e819
workflow dispatch: fixing problems
Edoardo-Pedicillo c4a5ec1
workflow dispatch: fixing problems
Edoardo-Pedicillo acdd129
workflow dispatch: fixing problems
Edoardo-Pedicillo 5359750
workflow dispatch: fixing problems
Edoardo-Pedicillo 4d26fc5
remove blank line
Edoardo-Pedicillo a6c0775
change branch to 'documentation'
Edoardo-Pedicillo edd24c6
add package manager
Edoardo-Pedicillo 499950d
add dependency-path
Edoardo-Pedicillo 9b14a98
change branch in main
Edoardo-Pedicillo 10fd090
explore github.event_name
Edoardo-Pedicillo 10a24c0
fix bug
Edoardo-Pedicillo 853032c
explore github.ref
Edoardo-Pedicillo 0746f9a
add label latest
Edoardo-Pedicillo 5f58486
add label stable
Edoardo-Pedicillo 16fe43d
use bash for the labels
Edoardo-Pedicillo 7852e99
typo
Edoardo-Pedicillo d60d586
add job generate-docs
Edoardo-Pedicillo 30158f8
typo
Edoardo-Pedicillo af1815b
fix bug
Edoardo-Pedicillo 0416543
typo
Edoardo-Pedicillo 8dd0f43
typo
Edoardo-Pedicillo 822bcfc
fix bugs
Edoardo-Pedicillo 20ee179
add job new-artifact
Edoardo-Pedicillo b8be559
add debugging lines
Edoardo-Pedicillo cb75533
rename artifact folder
Edoardo-Pedicillo 07131fd
typo
Edoardo-Pedicillo c9aeaf0
typo
Edoardo-Pedicillo eb0316e
add debugging line
Edoardo-Pedicillo 8d35700
unzip folder
Edoardo-Pedicillo a1646fa
typo
Edoardo-Pedicillo 3229e16
typo
Edoardo-Pedicillo f69a19a
use tar instead of unzip
Edoardo-Pedicillo d1f13de
typo
Edoardo-Pedicillo 08a4f44
extract archive in onether folder
Edoardo-Pedicillo ff3b8f6
typo
Edoardo-Pedicillo b2b270c
generate the remaning documentation
Edoardo-Pedicillo 8ad239f
fix bugs
Edoardo-Pedicillo 65dea61
generate remaning doc, general case
Edoardo-Pedicillo a0621b4
typo
Edoardo-Pedicillo 365ad30
minor fixes
Edoardo-Pedicillo 2e1dd71
minor fixes
Edoardo-Pedicillo 5f3ad42
minor fixes
Edoardo-Pedicillo a218db3
debugging
Edoardo-Pedicillo 908f56d
fix bugs
Edoardo-Pedicillo dfc35dc
upload artifact
Edoardo-Pedicillo e137805
typo
Edoardo-Pedicillo 78cb1a5
move new-artifact to deploy-sphinx-docs-to-ghpages
Edoardo-Pedicillo c615637
add comment
Edoardo-Pedicillo c76d380
fix bugs
Edoardo-Pedicillo d69b497
fix tag problem
Edoardo-Pedicillo 27bf5eb
restore file
Edoardo-Pedicillo e5199a0
debugging
Edoardo-Pedicillo 94462b1
change label conditions
Edoardo-Pedicillo f4f2682
change tag lable condition
Edoardo-Pedicillo 898fa66
fix tags
Edoardo-Pedicillo 80830f1
clean workflow
Edoardo-Pedicillo ca0c018
remove 'Error' label
Edoardo-Pedicillo c654092
change branch
Edoardo-Pedicillo 88a09fa
minor fixes
Edoardo-Pedicillo 1075f5c
removed package name and logo from doc frontpage
MatteoRobbiati 62dd34c
Change reusable workflow location to qiboteam
alecandido 55f2fb4
update deploy_doc.yml
Edoardo-Pedicillo 548d78e
correct bug
Edoardo-Pedicillo f7b4098
Change name of docs publishing workflow
alecandido 6adbf87
restore label
Edoardo-Pedicillo 1ac2b13
pre-commit
Edoardo-Pedicillo cec4ca9
Merge branch 'master' into master
MatteoRobbiati c9d055a
Now `conf.py` is the same of the one in `qiboteam/qibo`
MatteoRobbiati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [master] | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
evaluate-label: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
label: ${{ steps.label_step.outputs.version}} | ||
steps: | ||
- name: checks for the label | ||
id: label_step | ||
run: | | ||
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then | ||
echo "version=latest" >> $GITHUB_OUTPUT | ||
fi | ||
if [[ "${{ github.ref_type }}" == "branch" ]] && [[ "${{ github.ref }}" != "refs/heads/master" ]]; then | ||
exit 1 | ||
fi | ||
if [[ "${{ github.ref_type }}" == "tag" ]]; then | ||
echo "version=stable" >> $GITHUB_OUTPUT | ||
fi | ||
|
||
deploy-docs: | ||
needs: [evaluate-label] | ||
uses: qiboteam/workflows/.github/workflows/deploy-ghpages-latest-stable.yml@main | ||
with: | ||
python-version: 3.9 | ||
package-manager: "pip" | ||
dependency-path: "**/setup.py" | ||
trigger-label: "${{needs.evaluate-label.outputs.label}}" | ||
project: qibo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the approach in #745, or simply remove those changes in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to remove them, since I am making these changes in dedicated PR.