fix: value substitution in release
This commit is contained in:
parent
00e1397586
commit
a4cb86b386
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
|
@ -16,6 +16,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install build-essential wget zip && \
|
sudo apt-get install build-essential wget zip && \
|
||||||
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
|
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
|
||||||
|
sudo rm -rf /usr/local/go && \
|
||||||
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
|
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
|
||||||
echo PATH=$PATH:/usr/local/go/bin >> ~/.bashrc && \
|
echo PATH=$PATH:/usr/local/go/bin >> ~/.bashrc && \
|
||||||
source ~/.bashrc && \
|
source ~/.bashrc && \
|
||||||
|
@ -35,7 +36,7 @@ jobs:
|
||||||
- name: Echo Version
|
- name: Echo Version
|
||||||
run: echo ${VERSION}
|
run: echo ${VERSION}
|
||||||
- name: Set CGO_ENABLED env
|
- name: Set CGO_ENABLED env
|
||||||
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo GOOS=${matrix.goos} >> ${GITHUB_ENV}
|
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo GOOS=${{matrix.goos}} >> ${GITHUB_ENV}
|
||||||
- name: CAT ENV
|
- name: CAT ENV
|
||||||
run: cat ${GITHUB_ENV}
|
run: cat ${GITHUB_ENV}
|
||||||
- name: Set Windows C Compiler GO env
|
- name: Set Windows C Compiler GO env
|
||||||
|
@ -47,8 +48,8 @@ jobs:
|
||||||
if: ${{ matrix.goos == 'windows'}}
|
if: ${{ matrix.goos == 'windows'}}
|
||||||
run: |
|
run: |
|
||||||
mv .env.sample .env && \
|
mv .env.sample .env && \
|
||||||
zip -vr authorizer-${VERSION}-windows-${matrix.goarch}.zip .env app build template && \
|
zip -vr authorizer-${VERSION}-windows-${{matrix.goarch}}.zip .env app build template && \
|
||||||
github-assets-uploader -f authorizer-${VERSION}-windows-${matrix.goarch}.zip -mediatype application/zip -repo authorizerdev/authorizer -token ${secrets.RELEASE_TOKEN} -tag ${VERSION}
|
github-assets-uploader -f authorizer-${VERSION}-windows-${{matrix.goarch}}.zip -mediatype application/zip -repo authorizerdev/authorizer -token ${{secrets.RELEASE_TOKEN}} -tag ${VERSION}
|
||||||
|
|
||||||
# - uses: wangyoucao577/go-release-action@v1.20
|
# - uses: wangyoucao577/go-release-action@v1.20
|
||||||
# with:
|
# with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user