|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 |
|
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 |
15 | 54 |
|
16 | | - steps: |
| 55 | + windows: |
| 56 | + runs-on: windows-latest |
17 | 57 |
|
| 58 | + steps: |
18 | 59 | - uses: actions/checkout@v2 |
19 | 60 |
|
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}'" |
23 | 64 |
|
24 | 65 | - uses: actions/upload-artifact@v2 |
25 | 66 | with: |
26 | | - name: helloWorld-linux-x86_64 |
| 67 | + name: Windows executable (x86_64) |
27 | 68 | path: dist/ |
28 | 69 |
|
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 |
32 | 78 |
|
33 | 79 | - name: Create Release |
34 | 80 | id: create_release |
|
48 | 94 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
49 | 95 | with: |
50 | 96 | 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 |
69 | 100 |
|
0 commit comments