github: Cleanup build script

This commit is contained in:
remittor
2025-01-17 11:30:08 +03:00
parent fbb1239606
commit 0891e9d2fa

View File

@@ -25,7 +25,8 @@ on:
env: env:
FAKE_BUILD: ${{ github.event.inputs.fake_build == 'true' }} FAKE_BUILD: ${{ github.event.inputs.fake_build == 'true' }}
SUFFIX: ${{ github.event.inputs.fake_build == 'true' && '-fake' || '' }} MAX_SPEED: ${{ github.event.inputs.max_speed != 'false' }}
TAG_SUFFIX: ${{ github.event.inputs.fake_build == 'true' && '-fake' || '' }}
REPO_URL: https://github.com/remittor/zapret-openwrt REPO_URL: https://github.com/remittor/zapret-openwrt
REPO_LNK: remittor/zapret-openwrt REPO_LNK: remittor/zapret-openwrt
REPO_BRANCH: master REPO_BRANCH: master
@@ -127,7 +128,7 @@ jobs:
- mipsel_mips32 - mipsel_mips32
- x86_64 - x86_64
isFake: isFake:
- ${{ github.event.inputs.fake_build == 'true' }} - ${{ env.FAKE_BUILD }}
exclude: exclude:
- branch: SNAPSHOT - branch: SNAPSHOT
arch: arm_mpcore arch: arm_mpcore
@@ -187,7 +188,6 @@ jobs:
id: build id: build
working-directory: '/builder' working-directory: '/builder'
env: env:
MAX_SPEED: ${{ github.event.inputs.max_speed != 'false' }}
BUILD_DATE: ${{ needs.check.outputs.build_date }} BUILD_DATE: ${{ needs.check.outputs.build_date }}
DATE: ${{ needs.check.outputs.date }} DATE: ${{ needs.check.outputs.date }}
SHA: ${{ needs.check.outputs.sha }} SHA: ${{ needs.check.outputs.sha }}
@@ -315,8 +315,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ needs.check.outputs.tag }} TAG: ${{ needs.check.outputs.tag }}
with: with:
prerelease: ${{ github.event.inputs.fake_build == 'true' }} prerelease: ${{ env.FAKE_BUILD }}
tag_name: v${{ needs.build.outputs.pkgver }}${{ github.event.inputs.fake_build == 'true' && '-fake' || '' }} tag_name: v${{ needs.build.outputs.pkgver }}${{ env.TAG_SUFFIX }}
name: zapret v${{ needs.build.outputs.pkgver }} name: zapret v${{ needs.build.outputs.pkgver }}
body: | body: |
zapret v${{ needs.build.outputs.pkgver }} for OpenWrt zapret v${{ needs.build.outputs.pkgver }} for OpenWrt