Skip to content

Commit 876c8f9

Browse files
committed
Uses version in asset upload run.
1 parent ee6911b commit 876c8f9

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ant.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
uses: actions/setup-java@v1
1515
with:
1616
java-version: 1.8
17-
# - name: Install dpkg tools
18-
# run: sudo apt-get install dpkg-dev debhelper javahelper
19-
# - name: Build with Ant
20-
# run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
21-
- name: Test output
22-
run: echo $VERSION
17+
- name: Install dpkg tools
18+
run: sudo apt-get install dpkg-dev debhelper javahelper
19+
- name: Build with Ant
20+
run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
21+
# - name: Test output
22+
# run: echo $VERSION
2323
# run: ls -l release/debian
2424
- name: Create Release
2525
id: create_release
@@ -31,13 +31,13 @@ jobs:
3131
release_name: ${{ env.VERSION }}
3232
draft: false
3333
prerelease: false
34-
# - name: Upload Release Asset
35-
# id: upload-release-asset
36-
# uses: actions/upload-release-asset@v1
37-
# env:
38-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
# with:
40-
# 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
41-
# asset_path: ./release/debian/jitsi_2.11.$((GITHUB_RUN_NUMBER + VERSION_OFFSET))-1_amd64.deb
42-
# asset_name: jitsi_2.11.$((GITHUB_RUN_NUMBER + VERSION_OFFSET))-1_amd64.deb
43-
# asset_content_type: application/octet-stream
34+
- name: Upload Release Asset
35+
id: upload-release-asset
36+
uses: actions/upload-release-asset@v1
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
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
41+
asset_path: ./release/debian/jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
42+
asset_name: jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
43+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)