-
Notifications
You must be signed in to change notification settings - Fork 66
37 lines (31 loc) · 950 Bytes
/
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
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-20.04
steps:
- id: get-version
uses: battila7/get-version-action@v2
- uses: actions/checkout@v2
with:
submodules: true
- id: release-asset
run: |
version=${{ steps.get-version.outputs.version-without-v }}
cd ..
cp -r libuhttpd libuhttpd-$version
rm -rf libuhttpd-$version/.git*
rm -rf libuhttpd-$version/src/http-parser/.git*
rm -rf libuhttpd-$version/src/buffer/.git*
rm -rf libuhttpd-$version/src/ssl/.git*
rm -rf libuhttpd-$version/src/log/.git*
tar zcfv libuhttpd-$version.tar.gz libuhttpd-$version
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
draft: true
prerelease: false
files: ../libuhttpd-*.tar.gz