aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/builds.yml
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-05-29 19:13:04 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-05-30 20:12:39 +0200
commit4d192605d6be1809cfb1d0d3d266b183f83cdc6f (patch)
tree40432413d5ede042434c272c35822a90a140b227 /.github/workflows/builds.yml
parent6f2ef06aa2d7fc4cf8c34b2aaa844c2430e4ab3e (diff)
Set build permissions to `write-all`
Fix missing archive_directory variable Fix excessive archive path for zip release
Diffstat (limited to '.github/workflows/builds.yml')
-rw-r--r--.github/workflows/builds.yml7
1 files changed, 4 insertions, 3 deletions
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