Skip to content
Draft
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
43 changes: 43 additions & 0 deletions .github/workflows/update-quick-start-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ on:
paths:
- .github/workflows/update-quick-start-module.yml
- scripts/gen_quick_start_module.py
- scripts/gen_additional_platform.py
- _includes/quick-start-module.js
- _includes/quick_start_local.html
- _includes/quick-start-additional-platform.js
- _additional_platform/*.json
push:
branches:
site
paths:
- .github/workflows/update-quick-start-module.yml
- scripts/gen_quick_start_module.py
- scripts/gen_additional_platform.py
- _includes/quick-start-module.js
- _includes/quick_start_local.html
- _includes/quick-start-additional-platform.js
- _additional_platform/*.json
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -116,3 +122,40 @@ jobs:
body: >
This PR is auto-generated. It updates Getting Started page
labels: automated pr

update-additional-platform:
needs: [linux-nightly-matrix, windows-nightly-matrix, macos-arm64-nightly-matrix,
linux-release-matrix, windows-release-matrix, macos-arm64-release-matrix]
runs-on: "ubuntu-latest"
environment: pytorchbot-env
steps:
- name: Checkout pytorch.github.io
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Generate quick-start-additional-platform.js
shell: bash
run: |
set -ex
python3 ./scripts/gen_additional_platform.py
- name: Create Issue if failed
uses: dacbd/create-issue-action@main
if: ${{ failure() }}
with:
title: Updating additional platform quick start module failed
token: ${{secrets.PYTORCHBOT_TOKEN}}
assignees: ${{github.actor}}
labels: bug
body: Updating additional platform quick start module failed, please fix the update script or check JSON files
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PYTORCHBOT_TOKEN }}
commit-message: Update quick-start-additional-platform.js
title: '[Additional Platform] Update quick-start-additional-platform.js'
body: >
This PR is auto-generated. It updates the Additional Platform Getting Started page
labels: automated pr
22 changes: 22 additions & 0 deletions _get_started/get-started-additional-platform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: get_started
title: Additional Platform
permalink: /get-started/additional-platform/
background-class: get-started-background
body-class: get-started
order: 1
published: true
get-started-additional: true
---

<div class="container-fluid quick-start-module quick-starts">
<div class="row">
<div class="col-md-12">
{% include quick_start_additional_platform.html %}
</div>
</div>
</div>

<script page-id="get-started-additional-platform" src="{{ site.baseurl }}/assets/menu-tab-selection.js"></script>
<script src="{{ site.baseurl }}/assets/quick-start-module.js"></script>
<script src="{{ site.baseurl }}/assets/get-started-sidebar.js"></script>
2 changes: 2 additions & 0 deletions _get_started/get-started-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ redirect_from: "/get-started/"
</div>
</div>

<p><i>Could not find the right binary for your hardware?</i> See the <a href="{{ site.baseurl }}/get-started/additional-platform/">PyTorch Additional Platform page</a>.</p>

---

{% capture mac %}
Expand Down
Loading