forked from micropython/micropython-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/ci.sh: Support publishing package and index files to GitHub Pages.
Opt-in feature to make it easier for folks to test packages that are still in development, open in Pull Requests, or even in independent forks. --- To enable this on your own GitHub fork of the micropython-lib repository then navigate to the fork's "Settings" -> "Secrets and variables" -> "Actions" -> "Variables" page, then click "New repository variable", and create a variable named MIP_INDEX with value true (or any "truthy" value). Once enabled then any time a branch is pushed to your fork and builds successfully, GitHub Actions will also push the built packages and package index to the gh-pages branch which is associated with the repo's GitHub Pages web site. The packages can then be installed remotely via: mpremote mip --index \ https://USERNAME.github.io/micropython-lib/mip/BRANCH_NAME PACKAGE_NAME or on a device as: mip.install(PACKAGE_NAME, index="https://USERNAME.github.io/micropython-lib/mip/BRANCHNAME") (Replace USERNAME, BRANCH_NAME and PACKAGE_NAME as applicable. If you've renamed your fork, change the name micropython-lib to match.) Note: As well as the MIP_INDEX repository variable, this functionality depends on both GitHub Actions and GitHub Pages being enabled on your repository in GitHub. However both options should enable automatically, unless they have been manually disabled. This work was funded through GitHub Sponsors.
- Loading branch information
1 parent
9ee0257
commit 1eb282a
Showing
5 changed files
with
196 additions
and
1 deletion.
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
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,12 @@ | ||
name: Cleanup published packages | ||
|
||
on: delete | ||
|
||
jobs: | ||
cleanup: | ||
runs-on: ubuntu-latest | ||
if: vars.MICROPY_PUBLISH_MIP_INDEX | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Clean up published files | ||
run: source tools/ci.sh && ci_cleanup_package_index ${{ github.event.ref }} |
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
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
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