-
Notifications
You must be signed in to change notification settings - Fork 35
53 lines (44 loc) · 1.59 KB
/
Copy pathrelease-please.yml
File metadata and controls
53 lines (44 loc) · 1.59 KB
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
48
49
50
51
52
53
name: Release Please
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-24.04
steps:
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Check out repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up mise toolchain
if: ${{ steps.release.outputs.release_created }}
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
install: true
cache: true
- name: Install Pebble SDK
if: ${{ steps.release.outputs.release_created }}
run: scripts/ensure-pebble-sdk.sh
- name: Build .pbw
if: ${{ steps.release.outputs.release_created }}
env:
TELEMETRY_ENDPOINT: ${{ secrets.TELEMETRY_ENDPOINT_RELEASE }}
run: mise build release
- name: Verify release asset exists
if: ${{ steps.release.outputs.release_created }}
run: test -f build/forecaswatch2.pbw
- name: Upload .pbw to release
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} build/forecaswatch2.pbw --clobber