File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ jobs:
3333 run : echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
3434 - name : Copy .env file
3535 run : mv .env.sample .env
36- # - name: Package files for windows
37- # run: |
38- # make clean && \
39- # CGO_ENABLED=1 GOOS=windows CC=/usr/bin/x86_64-w64-mingw32-gcc make && \
40- # mv build/server build/server.exe && \
41- # zip -vr authorizer-${VERSION}-windows-amd64.zip .env app/build build templates
36+ - name : Package files for windows
37+ run : |
38+ make clean && \
39+ CGO_ENABLED=1 GOOS=windows CC=/usr/bin/x86_64-w64-mingw32-gcc make && \
40+ mv build/server build/server.exe && \
41+ zip -vr authorizer-${VERSION}-windows-amd64.zip .env app/build build templates
4242 - name : Package files for linux
4343 run : |
4444 make clean && \
5050 files : authorizer-${VERSION}-linux-amd64.tar.gz
5151 token : ${{secrets.RELEASE_TOKEN}}
5252 tag_name : ${VERSION}
53- # - name: Upload assets
54- # run: |
55- # github-assets-uploader -f authorizer-${VERSION}-linux-amd64.tar.gz -mediatype application/gzip -repo authorizerdev/authorizer -token ${{secrets.RELEASE_TOKEN}} -tag ${VERSION}
53+ - name : Upload assets
54+ run : |
55+ github-assets-uploader -f authorizer-${VERSION}-windows-amd64.zip -mediatype application/zip -repo authorizerdev/authorizer -token ${{secrets.RELEASE_TOKEN}} -tag ${VERSION} && \
56+ github-assets-uploader -f authorizer-${VERSION}-linux-amd64.tar.gz -mediatype application/gzip -repo authorizerdev/authorizer -token ${{secrets.RELEASE_TOKEN}} -tag ${VERSION}
5657 - name : Log in to Docker Hub
5758 uses : docker/login-action@v1
5859 with :
You can’t perform that action at this time.
0 commit comments