-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.18 KB
/
build.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
---
# see: https://github.com/marketplace/actions/upload-files-to-a-github-release
name: Build and publish
on:
release:
types: [created]
jobs:
build:
name: Build and publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
run: sudo apt-get install -y libssl-dev liblzo2-dev libpam0g-dev libcap-ng-dev liblz4-dev build-essential
- name: Build debian/ubuntu binary with '--enable-iproute2'
run: bash scripts/build.sh "${{ github.ref_name }}" "--enable-iproute2"
shell: bash
- name: Publish ubuntu binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
file: "/tmp/openvpn_${{ github.ref_name }}"
asset_name: 'openvpn-x86_64-ubuntu+enable-iproute2'
tag: "${{ github.ref }}"
overwrite: false
- name: Publish debian binary
uses: svenstaro/upload-release-action@v2
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
file: "/tmp/openvpn_${{ github.ref_name }}"
asset_name: 'openvpn-x86_64-debian+enable-iproute2'
tag: "${{ github.ref }}"
overwrite: false