Compare commits

...

2 Commits

Author SHA1 Message Date
Lakhan Samani
3b39c71835 fix: make command 2021-09-11 12:57:32 +05:30
Lakhan Samani
a4cb86b386 fix: value substitution in release 2021-09-11 12:52:39 +05:30

View File

@@ -16,6 +16,7 @@ jobs:
run: |
sudo apt-get install build-essential wget zip && \
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 && \
echo PATH=$PATH:/usr/local/go/bin >> ~/.bashrc && \
source ~/.bashrc && \
@@ -25,6 +26,8 @@ jobs:
sudo mv github-assets-uploader /usr/sbin/ && \
sudo rm -f github-assets-uploader.tar.gz && \
github-assets-uploader -version
- name: Print Go paths
run: whereis go
- name: Print Go Version
run: go version
- name: Install windows dependencies
@@ -35,20 +38,20 @@ jobs:
- name: Echo Version
run: echo ${VERSION}
- 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
run: cat ${GITHUB_ENV}
- name: Set Windows C Compiler GO env
if: ${{ matrix.goos == 'windows'}}
run: echo CC=/usr/bin/x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
- name: Create build
run: make clean && make build
run: make clean && make
- name: Package files
if: ${{ matrix.goos == 'windows'}}
run: |
mv .env.sample .env && \
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}
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}
# - uses: wangyoucao577/go-release-action@v1.20
# with: