Skip to content

Commit 1299ec5

Browse files
committed
fix: enable win release
1 parent bc53974 commit 1299ec5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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 && \
@@ -50,9 +50,10 @@ jobs:
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:

0 commit comments

Comments
 (0)