-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 968 Bytes
/
release.yml
File metadata and controls
39 lines (31 loc) · 968 Bytes
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
name: Release PCapture-Lib
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Create necessary directories
run: |
mkdir -p OUTPUT
- name: Run all-in-one script
run: |
python .github/create_all_in_one.py
- name: Prepare release assets
run: |
mkdir release
cp OUTPUT/PCapture-Lib.nut release/
cp .github/README_release.md release/README.md
cd release && zip "PCapture-Lib All-in-One.zip" PCapture-Lib.nut README.md
echo "ASSET_ALL_IN_ONE=$(pwd)/PCapture-Lib All-in-One.zip" >> $GITHUB_ENV
- name: Upload release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.ASSET_ALL_IN_ONE }}