forked from EEESlab/tricore-gcc-toolchain-11.3.0
-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (38 loc) · 1.36 KB
/
release.yml
File metadata and controls
44 lines (38 loc) · 1.36 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
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Publish Release artifacts
runs-on: ubuntu-latest
steps:
- name: Download artifacts from latest workflow
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: build.yml
branch: ${{ github.event.release.target_commitish }}
workflow_conclusion: success
skip_unpack: false
- name: Prepare linux package
run: |
mkdir linux-bundle && cd linux-bundle
tar xf ../tricore-gcc-artifacts/gcc-linux.tar.gz
tar xf ../tricore-qemu-linux-artifacts/qemu-linux.tar.gz
tar xf ../tricore-gdb-linux-artifacts/gdb-linux.tar.gz
tar -czf tricore-gcc-${{ github.ref_name }}-linux.tar.gz ./*
- name: Prepare windows package
run: |
mkdir win32-bundle && cd win32-bundle
unzip ../tricore-gcc-artifacts/gcc-win32.zip
unzip -o ../tricore-qemu-win32-artifacts/qemu-win32.zip
unzip -o ../tricore-gdb-win32-artifacts/gdb-win32.zip
zip -r9 tricore-gcc-${{ github.ref_name }}-win32.zip ./*
- name: Push release artifacts
uses: softprops/action-gh-release@v2
with:
files: |
linux-bundle/*.tar.gz
win32-bundle/*.zip