blob: ce9d5529bd5fc3fadacebaa0c6d64bb04a94f1ea [file] [log] [blame]
Fabio Utzigc06694e2020-11-10 10:36:42 -03001on:
2 push:
3 branches:
David Brownfe0bfcf2021-05-14 10:12:10 -06004 - main
Fabio Utzigc1b29832021-01-13 11:13:15 -03005 - v*-branch
Fabio Utzigc06694e2020-11-10 10:36:42 -03006
Fabio Utzig0be390e2020-11-12 10:45:07 -03007name: imgtool
8
Gustavo Henrique Niheie5718552021-12-17 10:35:59 -03009concurrency:
10 group: imgtool-${{ github.event.pull_request.number || github.ref }}
11 cancel-in-progress: true
12
Fabio Utzigc06694e2020-11-10 10:36:42 -030013jobs:
14 environment:
Fabio Utzigc06694e2020-11-10 10:36:42 -030015 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@v2
18 with:
19 fetch-depth: 0
Fabio Utzig7bf51792021-02-11 19:30:55 -030020 - name: Cache pip
21 uses: actions/cache@v1
22 with:
23 path: ~/.cache/pip
24 key: ${{ runner.os }}-pip
Fabio Utzig0be390e2020-11-12 10:45:07 -030025 - name: Install packages
Fabio Utzigc06694e2020-11-10 10:36:42 -030026 run: |
27 export PATH="$HOME/.local/bin:$PATH"
28 ./ci/imgtool_install.sh
Fabio Utzig0be390e2020-11-12 10:45:07 -030029 - name: Publish
Fabio Utzigc06694e2020-11-10 10:36:42 -030030 env:
31 TWINE_TOKEN: ${{ secrets.TWINE_TOKEN }}
32 run: |
33 export PATH="$HOME/.local/bin:$PATH"
34 ./ci/imgtool_run.sh