Skip to content

Commit

Permalink
fix: github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Nov 7, 2024
1 parent 12fdfcf commit e6726a8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
workflow_dispatch:

env:
REPOSITORY_NAME: "cs2-roll-the-dice" # same as on github
REPOSITORY_FOLDER: "RollTheDice" # subfolder with source code

jobs:
Expand Down Expand Up @@ -54,11 +53,11 @@ jobs:
- name: Rename release directory
if: env.new_version == 'true'
run: |
mv /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/ /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/${{ env.REPOSITORY_FOLDER }}/
mv /home/runner/work/${{ github.repository }}/${{ github.repository }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/ /home/runner/work/${{ github.repository }}/${{ github.repository }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/${{ env.REPOSITORY_FOLDER }}/
- name: Zip release
if: env.new_version == 'true'
run: cd /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0 && zip -r /home/runner/work/${{ env.REPOSITORY_NAME }}-${{ env.version }}.zip ${{ env.REPOSITORY_FOLDER }}
run: cd /home/runner/work/${{ github.repository }}/${{ github.repository }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0 && zip -r /home/runner/work/${{ github.repository }}-${{ env.version }}.zip ${{ env.REPOSITORY_FOLDER }}

- name: Get release notes
if: env.new_version == 'true'
Expand Down Expand Up @@ -88,5 +87,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/{{ env.REPOSITORY_NAME }}-${{ env.version }}.zip
asset_name: ${{ env.REPOSITORY_NAME }}-${{ env.version }}.zip
asset_name: ${{ github.repository }}-${{ env.version }}.zip
asset_content_type: application/zip

0 comments on commit e6726a8

Please sign in to comment.