-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.28 KB
/
release.yaml
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
---
name: Release
on:
release:
types:
- published
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🔢 Adjust version number
shell: bash
run: |
version="${{ github.event.release.tag_name }}"
version="${version,,}"
version="${version#v}"
yq e -P -o=json \
-i ".version = \"${version}\"" \
"${{ github.workspace }}/custom_components/aliexpress_openplatform/manifest.json"
- name: 📦 Created zipped release package
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/aliexpress_openplatform"
zip aliexpress_openplatform.zip -r ./
- name: 🔏 Sign release package
uses: sigstore/[email protected]
with:
inputs: ${{ github.workspace }}/custom_components/aliexpress_openplatform/aliexpress_openplatform.zip
- name: ⬆️ Upload zip to release
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/aliexpress_openplatform/aliexpress_openplatform.zip