Skip to content

Commit bce5106

Browse files
committed
attempting to get artifacts of windows builds published publicly via releases
1 parent 0591b1c commit bce5106

File tree

1 file changed

+60
-29
lines changed

1 file changed

+60
-29
lines changed

.github/workflows/build.yml

Lines changed: 60 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,72 @@ on:
99

1010
jobs:
1111

12-
linux:
13-
runs-on: ubuntu-latest
14-
# container: debian:buster-slim
12+
# linux:
13+
# runs-on: ubuntu-latest
14+
## container: debian:buster-slim
15+
#
16+
# steps:
17+
#
18+
# - uses: actions/checkout@v2
19+
#
20+
# - name: Execute script to build linux AppImage
21+
# run: "build/linux/buildAppImage.sh"
22+
# shell: bash
23+
#
24+
# - uses: actions/upload-artifact@v2
25+
# with:
26+
# name: helloWorld-linux-x86_64
27+
# path: dist/
28+
#
29+
# - name: Create dist tarball
30+
# run: 'tar -cjvf helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
31+
# shell: bash
32+
#
33+
# - name: Create Release
34+
# id: create_release
35+
# uses: actions/create-release@v1
36+
# env:
37+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
# with:
39+
# tag_name: ${{ github.run_id }}
40+
# release_name: Public Build Artifact ${{ github.run_id }}
41+
# draft: false
42+
# prerelease: true
43+
#
44+
# - name: Upload Release Asset
45+
# id: upload-release-asset
46+
# uses: actions/upload-release-asset@v1
47+
# env:
48+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
# with:
50+
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
51+
# asset_path: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
52+
# asset_name: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
53+
# asset_content_type: application/x-bzip2
1554

16-
steps:
55+
windows:
56+
runs-on: windows-latest
1757

58+
steps:
1859
- uses: actions/checkout@v2
1960

20-
- name: Execute script to build linux AppImage
21-
run: "build/linux/buildAppImage.sh"
22-
shell: bash
61+
- name: Execute script to .exe in Windows
62+
run: "build/windows/buildExe.ps1"
63+
shell: powershell -Command "& '{0}'"
2364

2465
- uses: actions/upload-artifact@v2
2566
with:
26-
name: helloWorld-linux-x86_64
67+
name: Windows executable (x86_64)
2768
path: dist/
2869

29-
- name: Create dist tarball
30-
run: 'tar -czvf helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
31-
shell: bash
70+
- uses: actions/upload-artifact@v2
71+
with:
72+
name: helloWorld-windows-x86_64
73+
path: dist/
74+
75+
- name: Create Release .zip
76+
run: 'Compress-Archive -DestinationPath helloWorld-windows-x86_64.${{ github.run_id }}.zip -Path dist\*'
77+
shell: powershell
3278

3379
- name: Create Release
3480
id: create_release
@@ -48,22 +94,7 @@ jobs:
4894
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4995
with:
5096
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
51-
asset_path: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
52-
asset_name: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
53-
asset_content_type: application/x-bzip2
54-
55-
# windows:
56-
# runs-on: windows-latest
57-
#
58-
# steps:
59-
# - uses: actions/checkout@v2
60-
#
61-
# - name: Execute script to .exe in Windows
62-
# run: "build/windows/buildExe.ps1"
63-
# shell: powershell -Command "& '{0}'"
64-
#
65-
# - uses: actions/upload-artifact@v2
66-
# with:
67-
# name: Windows executable (x86_64)
68-
# path: dist/
97+
asset_path: helloWorld-windows-x86_64.${{ github.run_id }}.zip
98+
asset_name: helloWorld-windows-x86_64.${{ github.run_id }}.zip
99+
asset_content_type: application/zip
69100

0 commit comments

Comments
 (0)