Feature/add release script (#471)
* add release script * updated changelog --------- Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
name: Release sf.net
|
||||
# script adapted from
|
||||
# https://sourceforge.net/p/forge/documentation/Using%20the%20Release%20API/
|
||||
# github docs
|
||||
# https://docs.github.com/en/actions/learn-github-actions/variables
|
||||
|
||||
on:
|
||||
push:
|
||||
# Pattern matched against refs/tags
|
||||
tags:
|
||||
- 'bacnet-stack-[0-9]+-[0-9]+-[0-9]+'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Create Build Environment
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -qq build-essential
|
||||
sudo apt-get install -qq mingw-w64
|
||||
- name: Build Win32 Apps
|
||||
run: |
|
||||
export CC=i686-w64-mingw32-gcc
|
||||
export LD=i686-w64-mingw32-ld
|
||||
i686-w64-mingw32-gcc --version
|
||||
make win32
|
||||
- name: Extract Version
|
||||
id: vars
|
||||
run: |
|
||||
echo ::set-output name=version::$(echo ${{github.ref_name}} | sed -e 's/^vbacnet-stack-// -e 's/-/./')
|
||||
echo ::set-output name=tool::$(echo ${{github.ref_name}} | sed -e 's/stack/tool/ -e 's/-/./')
|
||||
echo ::set-output name=archive::$(echo ${{github.ref_name}} | sed 's/-/./')
|
||||
- name: ZIP Win32 Apps
|
||||
run: |
|
||||
zip -r ${{steps.vars.outputs.tool}} ./bin/*.exe ./bin/readme.txt ./apps/mstpcap/mstpcap.txt
|
||||
- name: ZIP Source Code
|
||||
run: |
|
||||
git archive --format zip --output ${{steps.vars.outputs.archive}}.zip ${{github.ref_name}}
|
||||
- name: TGZ Source Code
|
||||
run: |
|
||||
git archive --format tgz --output ${{steps.vars.outputs.archive}}.tgz ${{github.ref_name}}
|
||||
- name: Deploy to sf.net
|
||||
run: |
|
||||
env:
|
||||
api_key: ${{ secrets.SOURCEFORGE_RELEASE_API_KEY_SKARG }}
|
||||
default_win: "default=windows"
|
||||
default_posix: "default=mac&default=linux&default=bsd&default=solaris&default=others"
|
||||
accept: "Accept: application/json"
|
||||
url: "https://sourceforge.net/projects/bacnet/files"
|
||||
url_tools: "$url/bacnet-tools/${{steps.vars.outputs.tool}}"
|
||||
url_source: "$url/bacnet-tools/${{steps.vars.outputs.archive}}"
|
||||
steps:
|
||||
- name: Upload tools to sf.net as default download for Windows
|
||||
run: |
|
||||
curl -H $accept -X PUT -d $default_win -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ${{steps.vars.outputs.tool}}.zip -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ./bin/readme.txt -d $api_key -d $url_tools
|
||||
- name: Upload archive to sf.net as default download for POSIX
|
||||
run: |
|
||||
curl -H $accept -X PUT -d $default_posix -d $api_key -d $url
|
||||
curl -H $accept -X PUT -d ${{steps.vars.outputs.archive}}.zip -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ${{steps.vars.outputs.archive}}.tgz -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ./README.md -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ./SECURITY.md -d $api_key -d $url_tools
|
||||
curl -H $accept -X PUT -d ./CHANGELOG.md -d $api_key -d $url_tools
|
||||
@@ -14,13 +14,34 @@ The git repositories are hosted at the following sites:
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [1.1.2] - 2023-08-18
|
||||
|
||||
### Security
|
||||
|
||||
- Fix bacapp_data_len() + bacnet_tag_number_and_value_decode() (#453)
|
||||
- Fix router-mstp and router-ipv6 apps action for unknown dnet (#454)
|
||||
- Fix router-mstp app to p revent npdu_len from wrapping around at npdu_len=1 (#452)
|
||||
- Fix router app where port might be null (#451)
|
||||
- Fix [bug#80] npdu_decode via deprecation (#447)
|
||||
- Fix [bug#79] out of bounds jump in h_apdu.c:apdu_handler (#446)
|
||||
|
||||
### Added
|
||||
|
||||
- Added github.com to sf.net github workflow for releases
|
||||
- Added MSTP Slave Node option to stm32f10x port (#467)
|
||||
- Added AFL + Libfuzzer harnesses (#455)
|
||||
|
||||
### Changed
|
||||
|
||||
- Improve router-mstp app usage (#470)
|
||||
- Updated zephyr to v3 4 0 in ci (#461) (#463)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix encode_context_bacnet_address (#464)
|
||||
- Fix west.yml imported repository set (#460) (#462)
|
||||
- Fix spurious interrupts from STM32 ORE (#456)
|
||||
- Fix writeproperty app known property option and priority (#450)
|
||||
- Fix segfault on mstp cleanup on linux port (#445)
|
||||
- Fix minimal config by adding bitstring (#443)
|
||||
- Fix WhoIs app APDU timeout (#444)
|
||||
|
||||
Reference in New Issue
Block a user