-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.19 KB
/
release_library.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release Library
on:
pull_request:
branches: [master]
types: [closed]
jobs:
release-lib:
if: ${{ github.event.pull_request.merged }}
name: "Release library"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PlatformIO
uses: n-vr/setup-platformio-action@v1
- name: Release lib to PlatformIO
run: |
export PLATFORMIO_AUTH_TOKEN=${{ secrets.PLATFORMIO_TOKEN }}
pio pkg publish --owner gpont --type library --non-interactive
release-binary:
if: ${{ github.event.pull_request.merged }}
permissions: write-all
name: "Release binary"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PlatformIO
uses: n-vr/setup-platformio-action@v1
- name: Build binary
run: pio pkg pack
- name: Upload binaries to release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "Release"
files: |
*.tar.gz