diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index cf5412164..67561f4aa 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -17,15 +17,14 @@ jobs: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - name: setup dependencies uses: actions/setup-go@v2 - - name: setup release environment - run: |- - echo 'MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN }}' > .release-env - echo 'LILICO_TOKEN=${{ secrets.LILICO_TOKEN }}' >> .release-env - echo 'APP_VERSION=$(basename ${GITHUB_REF})' >> .release-env - echo 'BUILD_TIME=$(date --iso-8601=seconds)' >> .release-env - echo 'VERSION=${{github.ref_name}}' >> .release-env - echo 'COMMIT=${{ github.sha }}' >> .release-env - echo 'CGO_FLAGS="-O2 -D__BLST_PORTABLE__"' >> .release-env - echo 'GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}' >> .release-env - name: release publish - run: make release \ No newline at end of file + run: make release + env: + MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }} + LILICO_TOKEN: ${{ secrets.LILICO_TOKEN }} + APP_VERSION: $(basename ${GITHUB_REF}) + BUILD_TIME: $(date --iso-8601=seconds) + VERSION: ${{github.ref_name}} + COMMIT: ${{ github.sha }} + CGO_FLAGS: "-O2 -D__BLST_PORTABLE__" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Makefile b/Makefile index fd61fa965..efd606727 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,14 @@ release: docker run \ --rm \ -e CGO_ENABLED=1 \ - --env-file .release-env \ + -e MIXPANEL_PROJECT_TOKEN=${MIXPANEL_PROJECT_TOKEN} \ + -e LILICO_TOKEN=${LILICO_TOKEN} \ + -e APP_VERSION=$(basename ${GITHUB_REF}) \ + -e BUILD_TIME=$(date --iso-8601=seconds) \ + -e VERSION=${GITHUB_REF} \ + -e COMMIT=${GITHUB_SHA} \ + -e CGO_FLAGS="-O2 -D__BLST_PORTABLE__" \ + -e GITHUB_TOKEN=${GITHUB_TOKEN} \ -v /var/run/docker.sock:/var/run/docker.sock \ -v `pwd`:/go/src/$(PACKAGE_NAME) \ -v `pwd`/sysroot:/sysroot \