mirror of https://github.com/jacekkow/keycloak-protocol-cas

Jacek Kowalski
2023-04-26 fe16b8019010fe752d45e8204f50d186a0fa150a
GitHub Actions: use softprops/action-gh-release@v1 for releases
1 files modified
25 ■■■■ changed files
.github/workflows/release.yml 25 ●●●● patch | view | raw | blame | history
.github/workflows/release.yml
@@ -108,6 +108,8 @@
    name: Release
    runs-on: ubuntu-latest
    needs: [build, test]
    permissions:
      contents: write
    steps:
      - id: download_artifact
        name: Download artifact
@@ -117,22 +119,9 @@
      - id: create_release
        name: Create release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        uses: softprops/action-gh-release@v1
        with:
          tag_name: ${{ github.ref }}
          release_name: ${{ needs.build.outputs.project_name }} ${{ needs.build.outputs.project_version }}
          draft: false
          prerelease: false
      - id: upload_release
        name: Upload release artifact
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release.outputs.upload_url }}
          asset_path: ${{ needs.build.outputs.artifact_id }}-${{ needs.build.outputs.project_version }}.jar
          asset_name: ${{ needs.build.outputs.artifact_id }}-${{ needs.build.outputs.project_version }}.jar
          asset_content_type: application/java-archive
          name: ${{ needs.build.outputs.project_name }} ${{ needs.build.outputs.project_version }}
          files: ${{ needs.build.outputs.artifact_id }}-${{ needs.build.outputs.project_version }}.jar
          fail_on_unmatched_files: true
          generate_release_notes: true