Skip to content

Commit

Permalink
Uses version in asset upload run.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Feb 24, 2020
1 parent ee6911b commit 876c8f9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
# - name: Install dpkg tools
# run: sudo apt-get install dpkg-dev debhelper javahelper
# - name: Build with Ant
# run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
- name: Test output
run: echo $VERSION
- name: Install dpkg tools
run: sudo apt-get install dpkg-dev debhelper javahelper
- name: Build with Ant
run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
# - name: Test output
# run: echo $VERSION
# run: ls -l release/debian
- name: Create Release
id: create_release
Expand All @@ -31,13 +31,13 @@ jobs:
release_name: ${{ env.VERSION }}
draft: false
prerelease: false
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# 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
# asset_path: ./release/debian/jitsi_2.11.$((GITHUB_RUN_NUMBER + VERSION_OFFSET))-1_amd64.deb
# asset_name: jitsi_2.11.$((GITHUB_RUN_NUMBER + VERSION_OFFSET))-1_amd64.deb
# asset_content_type: application/octet-stream
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
asset_path: ./release/debian/jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
asset_name: jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
asset_content_type: application/octet-stream

0 comments on commit 876c8f9

Please sign in to comment.