-
Notifications
You must be signed in to change notification settings - Fork 111
45 lines (37 loc) · 1.19 KB
/
release.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
name: Library Release PCM
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Get Tag Name
uses: olegtarasov/get-tag@v2.1.2
id: tagName
- name: Create the PCM package
run: |
echo "Release tag $GIT_TAG_NAME"
python3 package.py $GIT_TAG_NAME
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/espressif-kicad-addon.zip
asset_name: espressif-kicad-addon.zip
asset_content_type: application/zip
- name: Include Metadata File on Main Branch
run: |
mkdir -p ./build/main
cp ./metadata.json ./build/main/metadata.json
- name: Commit and Push Changes to Main Branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Add auto generated metadata.json file to the main branch'
branch: main