mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-09 13:06:50 +03:00
github: Cleanup build script
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user