Skip to content

Commit

Permalink
ci: fix the broken VERSION env
Browse files Browse the repository at this point in the history
The env name is changed by accident during the Makefile refactor
  • Loading branch information
spacewander authored and LiteSun committed Nov 23, 2021
1 parent cc7cafb commit cd0b355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Create tarball
if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
run: |
make compress-tar project_version=${{ steps.branch_env.outputs.version }}
make compress-tar VERSION=${{ steps.branch_env.outputs.version }}
- name: Remove source code
if: ${{ startsWith(github.ref, 'refs/heads/release/') }}
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ SHELL := /bin/bash -o pipefail


# Project basic setting
VERSION ?= master
project_name ?= apache-apisix
project_version ?= master
project_compose_ci ?= ci/pod/docker-compose.yml
project_release_name ?= $(project_name)-$(project_version)-src
project_release_name ?= $(project_name)-$(VERSION)-src


# Hyperconverged Infrastructure
Expand Down Expand Up @@ -365,11 +365,13 @@ release-src: compress-tar

.PHONY: compress-tar
compress-tar:
# The $VERSION can be major.minor.patch (from developer)
# or major.minor (from the branch name in the CI)
$(ENV_TAR) -zcvf $(project_release_name).tgz \
./apisix \
./bin \
./conf \
./rockspec/apisix-$(project_version)-*.rockspec \
./rockspec/apisix-$(project_version)*.rockspec \
./rockspec/apisix-master-0.rockspec \
LICENSE \
Makefile \
Expand Down

0 comments on commit cd0b355

Please sign in to comment.