Skip to content

Commit

Permalink
release.yml fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
masofcon committed Apr 30, 2020
1 parent d59dc1a commit 8c7a251
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,21 @@ jobs:
- name: Build with Maven
run: mvn clean verify -PSDK -Dtycho.localArtifacts=ignore -B -V
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
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 }}
asset_path: ./repositories/org.example.repository.sdk/target/org.example.repository.sdk.zip
asset_name: repo.zip
asset_content_type: application/zip
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./repositories/org.example.repository.sdk/target/org.example.repository.sdk.zip
asset_name: repo.zip
asset_content_type: application/zip

0 comments on commit 8c7a251

Please sign in to comment.