Update ci.yaml
This commit is contained in:
parent
bea3a2f1e5
commit
cf34c3e385
|
@ -26,35 +26,35 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Theos Setup (Setup)
|
- name: Theos Setup
|
||||||
uses: NyaMisty/theos-action@master
|
uses: NyaMisty/theos-action@master
|
||||||
|
|
||||||
- name: Get tag
|
- name: Determine Tag or Default
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
id: determine_tag
|
||||||
id: tag
|
run: |
|
||||||
uses: dawidd6/action-get-tag@v1
|
# Check if the current ref is a tag
|
||||||
|
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||||
|
TAG_NAME="${GITHUB_REF#refs/tags/}"
|
||||||
|
else
|
||||||
|
TAG_NAME="0.0.5" # Fallback tag version
|
||||||
|
fi
|
||||||
|
echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Release package - Rootful
|
- name: Build Release package - Rootful
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
cd screendumpLowFrame
|
cd screendumpLowFrame
|
||||||
make clean
|
make clean
|
||||||
TAGNAME=${{ steps.tag.outputs.tag || '0.0.5' }} # Default value for manual run
|
make package FINALPACKAGE=1 PACKAGE_VERSION=${{ env.TAG_NAME }}-rootful
|
||||||
make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootful
|
|
||||||
|
|
||||||
- name: Build Release package - Rootless
|
- name: Build Release package - Rootless
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
||||||
run: |
|
run: |
|
||||||
cd screendumpLowFrame
|
cd screendumpLowFrame
|
||||||
make clean
|
make clean
|
||||||
TAGNAME=${{ steps.tag.outputs.tag || '0.0.5' }} # Default value for manual run
|
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 PACKAGE_VERSION=${{ env.TAG_NAME }}-rootless
|
||||||
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}-rootless
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
||||||
with:
|
with:
|
||||||
files: |
|
files: screendumpLowFrame/packages/*.deb
|
||||||
${{ github.workspace }}/screendumpLowFrame/packages/*.deb
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue