Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CMake

on:
push:
tags:
- '*'
branches: [ master ]
pull_request:
branches: [ master ]
Expand Down Expand Up @@ -57,9 +59,27 @@ jobs:
VERSION=$(git -C '${{github.workspace}}' describe --first-parent)
PLATFORM=$(echo ${{matrix.config.name}} | tr '[:upper:]' '[:lower:'] | sed 's/ /_/g')
echo "FILENAME=armips_${VERSION}_${PLATFORM}" >> $GITHUB_ENV
echo "RELEASENAME=armips_${VERSION}" >> $GITHUB_ENV

- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{env.FILENAME}}
path: ${{github.workspace}}/install

- name: Archive Release
uses: thedoctor0/zip-release@0.7.6
if: startsWith(github.ref, 'refs/tags/')
with:
type: 'zip'
filename: ${{env.FILENAME}}.zip
directory: '${{github.workspace}}/install'

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{env.RELEASENAME}}
prerelease: true
files: ${{github.workspace}}/install/${{env.FILENAME}}.zip