diff --git a/.github/workflows/godot_template.yml b/.github/workflows/godot_template.yml index 368aaa7..0ff5a25 100644 --- a/.github/workflows/godot_template.yml +++ b/.github/workflows/godot_template.yml @@ -14,6 +14,8 @@ jobs: default: name: ${{ inputs.target_name }} runs-on: ubuntu-latest + env: + output_file: ${{ inputs.output_path }}_${{ github.ref_name }}.zip steps: - name: checkout uses: actions/checkout@v3.3.0 @@ -33,11 +35,11 @@ jobs: if: github.event_name == 'release' run: |- cd ${{ github.workspace }}/build - zip -r ${{ inputs.output_path }}_${{ github.ref_name }}.zip . + zip -r ${{ env.output_file }} . - name: Upload ${{ inputs.target_name }} to Release ${{ github.ref_name }} if: github.event_name == 'release' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |- - gh release upload ${{ github.ref_name }} ${{ inputs.output_path }}_${{ github.ref_name }}.zip \ No newline at end of file + gh release upload ${{ github.ref_name }} ./${{ env.output_file }} \ No newline at end of file