From 4d192605d6be1809cfb1d0d3d266b183f83cdc6f Mon Sep 17 00:00:00 2001 From: "George L. Albany" Date: Mon, 29 May 2023 17:13:04 +0000 Subject: Set build permissions to `write-all` Fix missing archive_directory variable Fix excessive archive path for zip release --- .github/workflows/builds.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 43879be..8693696 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -10,6 +10,7 @@ jobs: build: runs-on: ${{matrix.os}} name: ${{matrix.name}} + permissions: write-all strategy: fail-fast: false matrix: @@ -110,8 +111,8 @@ jobs: uses: thedoctor0/zip-release@0.7.1 with: type: 'zip' - filename: 'libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip' - path: '${{ github.workspace }}/game/bin/openvic/' + filename: '../../../libopenvic.${{ matrix.platform }}.${{ matrix.arch }}.zip' + directory: '${{ github.workspace }}/game/bin/openvic/' if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - name: Create and upload asset @@ -209,7 +210,7 @@ jobs: omitNameDuringUpdate: true omitBodyDuringUpdate: true token: ${{ secrets.GITHUB_TOKEN }} - artifacts: ${{ steps.export.outputs.archive_directory }}/* + artifacts: ${{ steps.export_game.outputs.archive_directory }}/* - name: Upload artifact uses: actions/upload-artifact@v3 -- cgit v1.2.3-56-ga3b1