Skip to content

Commit

Permalink
Use softprops/action-gh-release@v2 for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Jan 22, 2025
1 parent fbbb1a4 commit d395207
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/github-actions-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,7 @@ jobs:
run: |
bazel build :oofork
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
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: ./bazel-bin/onlyoffice-editor.zip
asset_name: onlyoffice-editor.zip
asset_content_type: application/zip
files: ./bazel-bin/onlyoffice-editor.zip

0 comments on commit d395207

Please sign in to comment.