kopia lustrzana https://github.com/micropython/micropython-lib
github/workflows: Attach built packages to GitHub workflow artifacts.
rodzic
1eb282ad47
commit
40dfc5fbc5
|
@ -2,6 +2,9 @@ name: Build all packages
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
PACKAGE_INDEX_PATH: /tmp/micropython-lib-deploy
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -17,3 +20,8 @@ jobs:
|
||||||
- name: Publish packages for branch
|
- name: Publish packages for branch
|
||||||
if: vars.MICROPY_PUBLISH_MIP_INDEX && github.event_name == 'push' && ! github.event.deleted
|
if: vars.MICROPY_PUBLISH_MIP_INDEX && github.event_name == 'push' && ! github.event.deleted
|
||||||
run: source tools/ci.sh && ci_push_package_index
|
run: source tools/ci.sh && ci_push_package_index
|
||||||
|
- name: Upload packages as artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: packages-${{ github.sha }}
|
||||||
|
path: ${{ env.PACKAGE_INDEX_PATH }}
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
########################################################################################
|
|
||||||
# common "constants"
|
|
||||||
PACKAGE_INDEX_PATH=/tmp/micropython-lib-deploy
|
|
||||||
|
|
||||||
########################################################################################
|
########################################################################################
|
||||||
# code formatting
|
# code formatting
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue