Skip to content

Commit

Permalink
feat(infra): add prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Nov 16, 2024
1 parent b8186fd commit 3f22f16
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
Expand All @@ -58,7 +60,7 @@ jobs:
run: |
VERSION=${GITHUB_REF_NAME}
if expr "${VERSION}" : '[^0-9]*$' > /dev/null; then
VERSION=v0.0.0
VERSION=`git describe --tags`
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "version is: ${VERSION}"
Expand Down Expand Up @@ -182,7 +184,9 @@ jobs:
run: |
echo "NFPM_ARCH=${{ matrix.job.nfpm }}" >> $GITHUB_ENV
echo "NFPM_TARGET=${{ matrix.job.target }}" >> $GITHUB_ENV
echo "NFPM_VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
echo "NFPM_VERSION=`git describe --tags | cut -d - -f 1`" >> $GITHUB_ENV
echo "NFPM_RELEASE=`git describe --tags | cut -d - -f 2`" >> $GITHUB_ENV
echo "NFPM_PRERELEASE=`git describe --tags | cut -d - -f 3`" >> $GITHUB_ENV
- name: Build nFPM config
if: ${{ matrix.job.nfpm }}
Expand Down
2 changes: 2 additions & 0 deletions nfpm/live777.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "live777"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "${NFPM_VERSION}"
release: "${NFPM_RELEASE}"
prerelease: "${NFPM_PRERELEASE}"
section: "utility"
priority: "optional"
maintainer: "BinBat Ltd <[email protected]>"
Expand Down
2 changes: 2 additions & 0 deletions nfpm/liveman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "liveman"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "${NFPM_VERSION}"
release: "${NFPM_RELEASE}"
prerelease: "${NFPM_PRERELEASE}"
section: "utility"
priority: "optional"
maintainer: "BinBat Ltd <[email protected]>"
Expand Down
2 changes: 2 additions & 0 deletions nfpm/net4mqtt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "net4mqtt"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "${NFPM_VERSION}"
release: "${NFPM_RELEASE}"
prerelease: "${NFPM_PRERELEASE}"
section: "utility"
priority: "optional"
maintainer: "BinBat Ltd <[email protected]>"
Expand Down
2 changes: 2 additions & 0 deletions nfpm/whepfrom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "whepfrom"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "${NFPM_VERSION}"
release: "${NFPM_RELEASE}"
prerelease: "${NFPM_PRERELEASE}"
section: "utility"
priority: "optional"
maintainer: "BinBat Ltd <[email protected]>"
Expand Down
2 changes: 2 additions & 0 deletions nfpm/whipinto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "whipinto"
arch: "${NFPM_ARCH}"
platform: "linux"
version: "${NFPM_VERSION}"
release: "${NFPM_RELEASE}"
prerelease: "${NFPM_PRERELEASE}"
section: "utility"
priority: "optional"
maintainer: "BinBat Ltd <[email protected]>"
Expand Down

0 comments on commit 3f22f16

Please sign in to comment.