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:
33
33
run : echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
34
34
- name : Copy .env file
35
35
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
42
42
- name : Package files for linux
43
43
run : |
44
44
make clean && \
50
50
files : authorizer-${VERSION}-linux-amd64.tar.gz
51
51
token : ${{secrets.RELEASE_TOKEN}}
52
52
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}
56
57
- name : Log in to Docker Hub
57
58
uses : docker/login-action@v1
58
59
with :
You can’t perform that action at this time.
0 commit comments