Skip to content

Commit f1e1386

Browse files
committed
.github/workflows/release.yml: Modified to reusable wflow.
Signed-off-by: jaenrig-ifx <[email protected]>
1 parent 53ecede commit f1e1386

File tree

1 file changed

+7
-35
lines changed

1 file changed

+7
-35
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,11 @@
1-
name: XMC-for-Arduino Release Automation
1+
name: Release
22

33
on:
4-
release:
5-
types: published
64
push:
7-
tags:
8-
- 'v*.*.*'
9-
- 'V*.*.*'
5+
106
jobs:
11-
release:
12-
runs-on: ubuntu-latest
13-
if: startsWith(github.ref, 'refs/tags/V')
14-
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v4
17-
with:
18-
python-version: '3.x'
19-
- run: pip install requests
20-
21-
- name: Build release changelog
22-
id: build_changelog
23-
uses: mikepenz/release-changelog-builder-action@v3
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
27-
- name: Build release assets
28-
run: |
29-
cd .github/scripts
30-
python release.py build-release ${{ github.repository }} ${{ github.ref_name }}
31-
32-
- name: Upload assets
33-
uses: softprops/action-gh-release@v1
34-
with:
35-
name: XMC-for-Arduino ${{ github.ref_name }}
36-
files: |
37-
pkg_build/*.zip
38-
pkg_build/package_infineon_index.json
39-
body: ${{steps.build_changelog.outputs.changelog}}
7+
arduino-devops:
8+
uses: Infineon/arduino-devops/.github/workflows/release.yml@latest
9+
with:
10+
release-title: XMC-for-Arduino
11+
secrets: inherit

0 commit comments

Comments
 (0)