Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nqeron authored Jan 24, 2024
1 parent 19e94e7 commit 1943c2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
release_name: Release v${{ github.event.inputs.version }}
draft: false
prerelease: false
- run: echo "release-url=${{ steps.create_release.outputs.upload_url }}" >> "$GITHUB_ENV"

build:
strategy:
matrix:
os: [windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
env:
out-ext: ${{ matrix.os == 'windows-latest' && '.exe' || '.sh' }}
steps:

- name: Checkout code
Expand All @@ -43,9 +43,9 @@ jobs:
- name: Install reqs
run: nimble install -y

- name: tmp dir
run: mkdir tmp

- env:
out-ext: ${{ matrix.os == 'windows-latest' && '.exe' || '.sh' }}
- name: Build
id: build
run: |
Expand All @@ -57,7 +57,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
upload_url: ${{ env.release-url }}
asset_path: ./DitakticTei${{ env.out-ext }}
asset_name: DitakticTei${{ env.out-ext }}
asset_content_type: application/octet-stream

0 comments on commit 1943c2f

Please sign in to comment.