Skip to content

Commit

Permalink
use softprops/action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
joergbrech committed May 4, 2023
1 parent c45b887 commit bd9dca3
Showing 1 changed file with 24 additions and 51 deletions.
75 changes: 24 additions & 51 deletions .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,70 +36,43 @@ runs:
echo "version=$version" >> $GITHUB_ENV
env:
github_ref: ${{ github.ref }}

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: TiGL ${{ env.version }}
body: ${{ steps.changelog.outputs.content }}
draft: true
prerelease: false

- name: download MacOS package Build artifact
uses: actions/download-artifact@v3
with:
name: macos-package

- name: Upload MacOS Release Asset (.dmg)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./macos-package/TIGL-${{ env.version }}-Darwin.dmg
asset_name: TIGL-${{ env.version }}-Darwin.dmg
asset_content_type: application/zip


- name: download Win64 package Build artifact
uses: actions/download-artifact@v3
with:
name: win-package

- name: Upload Win64 Release Asset (.zip)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./win-package/TIGL-${{ env.version }}-win64.zip
asset_name: TIGL-${{ env.version }}-win64.zip
asset_content_type: application/zip


- name: download Win64 installer Build artifact
uses: actions/download-artifact@v3
with:
name: win-installer

- name: Upload Win64 Release Asset (.exe)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }}

- name: download MacOS package Build artifact
uses: actions/download-artifact@v3
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./win-installer/TIGL-${{ env.version }}-win64.exe
asset_name: TIGL-${{ env.version }}-win64.exe
asset_content_type: application/zip

name: macos-package

- name: download html-documentation
uses: actions/download-artifact@v3
with:
name: html-documentation
path: html-documentation

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: TiGL ${{ env.version }}
body: ${{ steps.changelog.outputs.content }}
draft: true
prerelease: false
token: ${{ inputs.GH_TOKEN }}
files: |
./win-installer/TIGL-${{ env.version }}-win64.exe
./win-package/TIGL-${{ env.version }}-win64.zip
./macos-package/TIGL-${{ env.version }}-Darwin.dmg
- name: Checkout tigl-website repo
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -128,7 +101,7 @@ runs:
- name: Create Pull Request at DLR-SC/tigl-website
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v5
with:
path: tigl-website
title: Add documentation for TiGL ${{ env.version }}
Expand All @@ -151,7 +124,7 @@ runs:
git diff
- name: Create Pull Request at DLR-SC/tigl-conda
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v5
with:
path: tigl-conda
title: Bump tigl3 version to ${{ env.version }}
Expand Down

0 comments on commit bd9dca3

Please sign in to comment.