-
Notifications
You must be signed in to change notification settings - Fork 112
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
Host documentation #250
base: master
Are you sure you want to change the base?
Host documentation #250
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,42 @@ | ||||||||||||||
name: Rust | ||||||||||||||
|
||||||||||||||
on: | ||||||||||||||
push: | ||||||||||||||
branches: [ "master" ] | ||||||||||||||
pull_request: | ||||||||||||||
branches: [ "master" ] | ||||||||||||||
Comment on lines
+5
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
workflow_dispatch: | ||||||||||||||
|
||||||||||||||
permissions: | ||||||||||||||
contents: read | ||||||||||||||
pages: write | ||||||||||||||
id-token: write | ||||||||||||||
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These permissions can perhaps be moved to the |
||||||||||||||
|
||||||||||||||
concurrency: | ||||||||||||||
group: "pages" | ||||||||||||||
cancel-in-progress: true | ||||||||||||||
|
||||||||||||||
env: | ||||||||||||||
CARGO_TERM_COLOR: always | ||||||||||||||
|
||||||||||||||
jobs: | ||||||||||||||
build: | ||||||||||||||
runs-on: macos-latest | ||||||||||||||
steps: | ||||||||||||||
- uses: actions/checkout@v3 | ||||||||||||||
- name: Document | ||||||||||||||
run: cargo doc --verbose | ||||||||||||||
- name: Packaging | ||||||||||||||
run: mv target/doc _site | ||||||||||||||
- name: Upload artifact | ||||||||||||||
uses: actions/upload-pages-artifact@v1 | ||||||||||||||
deploy: | ||||||||||||||
environment: | ||||||||||||||
name: github-pages | ||||||||||||||
url: ${{ steps.deployment.outputs.page_url }} | ||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||
needs: build | ||||||||||||||
steps: | ||||||||||||||
- name: Deploy to GitHub Pages | ||||||||||||||
id: deployment | ||||||||||||||
uses: actions/deploy-pages@v1 | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's now v3: https://github.com/actions/deploy-pages |
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.
And perhaps rename the file as well?