|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 |
|
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 }}_linux |
40 | | -# release_name: 'Public Build Artifact: Linux ${{ 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 |
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/ |
69 | | -# |
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 |
78 | | -# |
79 | | -# - name: Create Release |
80 | | -# id: create_release |
81 | | -# uses: actions/create-release@v1 |
82 | | -# env: |
83 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
84 | | -# with: |
85 | | -# tag_name: ${{ github.run_id }}_windows |
86 | | -# release_name: 'Public Build Artifact: Windows ${{ github.run_id }}' |
87 | | -# draft: false |
88 | | -# prerelease: true |
89 | | -# |
90 | | -# - name: Upload Release Asset |
91 | | -# id: upload-release-asset |
92 | | -# uses: actions/upload-release-asset@v1 |
93 | | -# env: |
94 | | -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
95 | | -# with: |
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 |
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 |
| 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 }}_linux |
| 40 | + release_name: 'Public Build Artifact: Linux ${{ 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 |
| 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/ |
| 69 | + |
| 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 |
| 78 | + |
| 79 | + - name: Create Release |
| 80 | + id: create_release |
| 81 | + uses: actions/create-release@v1 |
| 82 | + env: |
| 83 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 84 | + with: |
| 85 | + tag_name: ${{ github.run_id }}_windows |
| 86 | + release_name: 'Public Build Artifact: Windows ${{ github.run_id }}' |
| 87 | + draft: false |
| 88 | + prerelease: true |
| 89 | + |
| 90 | + - name: Upload Release Asset |
| 91 | + id: upload-release-asset |
| 92 | + uses: actions/upload-release-asset@v1 |
| 93 | + env: |
| 94 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 95 | + with: |
| 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 |
| 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 |
100 | 100 |
|
101 | 101 | mac: |
102 | 102 | runs-on: macos-latest |
|
0 commit comments