forked from doawoo/beam-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.23 KB
/
build_and_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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Release
on:
push:
branches:
- main # or any branch you want to trigger the workflow
env:
OPENSSL_VERSION: 3.2.1
OTP_VERSION: 26.2.1
jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run build.sh script
run: ./build.sh
- name: Run package.sh script
run: ./package.sh
- uses: actions/upload-artifact@v4
with:
name: otp
path: otp_*.tar.gz
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.OTP_VERSION }}-${{ env.OPENSSL_VERSION }}
release_name: Release ${{ env.OTP_VERSION }} (SSL ${{ env.OPENSSL_VERSION }})
draft: false
prerelease: false
- name: Upload Release Artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./otp_*.tar.gz
asset_name: otp_${{ env.OTP_VERSION }}_ssl_${{ env.OPENSSL_VERSION }}.tar.gz
asset_content_type: application/gzip