You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
path: build/AudioCapture-0.1-Linux64-bionic.deb # TODO: Build path from variables
95
+
96
+
- name: Upload Artifacts (macOS)
97
+
if: matrix.os == 'macOS-latest'
98
+
uses: actions/upload-artifact@master
99
+
with:
100
+
name: pkg-${{ matrix.os }}
101
+
path: build/AudioCapture-1.13.0-MacOS64.dmg # TODO: Build path from variables
102
+
103
+
#- name: Upload Artifacts (windows)
104
+
# if: matrix.os == 'windows-latest'
105
+
# uses: actions/upload-artifact@master
106
+
# with:
107
+
# name: pkg-${{ matrix.os }}
108
+
# path: build/*.7z # TODO: Build path from variables
109
+
110
+
release:
111
+
needs: build
112
+
runs-on: ubuntu-latest
113
+
steps:
114
+
- name: Create Release
115
+
if: startsWith(github.ref, 'refs/tags/')
116
+
id: create_release
117
+
uses: actions/create-release@v1
118
+
env:
119
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120
+
with:
121
+
tag_name: ${{ github.ref }}
122
+
release_name: Release ${{ github.ref }}
123
+
draft: false
124
+
prerelease: false
125
+
126
+
- name: Download Artifact (ubuntu)
127
+
if: startsWith(github.ref, 'refs/tags/')
128
+
uses: actions/download-artifact@v1
129
+
with:
130
+
name: pkg-ubuntu-latest
131
+
132
+
#- name: Download Artifact (windows)
133
+
# if: startsWith(github.ref, 'refs/tags/')
134
+
# uses: actions/download-artifact@v1
135
+
# with:
136
+
# name: pkg-windows-latest
137
+
138
+
- name: Download Artifact (macOS)
139
+
if: startsWith(github.ref, 'refs/tags/')
140
+
uses: actions/download-artifact@v1
141
+
with:
142
+
name: pkg-macOS-latest
143
+
144
+
- name: Upload Release Asset (ubuntu)
145
+
if: startsWith(github.ref, 'refs/tags/')
146
+
uses: actions/upload-release-asset@v1
147
+
env:
148
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149
+
with:
150
+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its 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
0 commit comments