Skip to content

Commit

Permalink
Merge pull request #18 from DavidStirling/compat-4-2-ai-morebuilds
Browse files Browse the repository at this point in the history
Rewrite release generator
  • Loading branch information
emilroz authored Apr 29, 2024
2 parents bee3858 + a1a4c99 commit 8a252f0
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
python-version: [ "3.8" ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
name: Checkout Repo
- uses: actions/setup-python@v4
name: Install Python
Expand Down Expand Up @@ -115,40 +115,19 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: create_release
uses: actions/create-release@v1
with:
draft: true
prerelease: true
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
- uses: actions/download-artifact@v1
with:
name: CellProfiler-macOS-4.2.60001-ai.dmg
path: ./
- uses: actions/download-artifact@v1
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: CellProfiler-Windows-4.2.60001-ai.exe
path: ./
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/upload-release-asset@v1
with:
asset_content_type: application/zip
asset_name: CellProfiler-macOS-4.2.60001-ai.dmg
asset_path: /home/runner/work/CellProfiler/CellProfiler/CellProfiler-macOS-4.2.60001-ai.dmg
upload_url: ${{ steps.create_release.outputs.upload_url }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/upload-release-asset@v1
merge-multiple: true
- name: Create release
uses: softprops/action-gh-release@v2
with:
asset_content_type: application/exe
asset_name: CellProfiler-Windows-4.2.60001-ai.exe
asset_path: /home/runner/work/CellProfiler/CellProfiler/CellProfiler-Windows-4.2.60001-ai.exe
upload_url: ${{ steps.create_release.outputs.upload_url }}
draft: true
files: |
./*.exe
./*.dmg
name: create-release
on:
push:
Expand Down

0 comments on commit 8a252f0

Please sign in to comment.