Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfletc committed Apr 29, 2024
1 parent 629a914 commit 183c587
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,7 @@ on:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create release
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

build:
needs: release
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -68,13 +45,12 @@ jobs:
mkdir release
cp -r scramScripts/scram2Plot release/
mv ${{ matrix.asset_name }} release/
tar -czf ${{ matrix.asset_name }}.tar.gz release/
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release and upload assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: release/${{ matrix.asset_name }}
asset_name: ${{ matrix.asset_name }}.tar.gz
asset_content_type: application/gzip
files: ${{ matrix.asset_name }}.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 183c587

Please sign in to comment.