diff --git a/.github/workflows/PS4.yml b/.github/workflows/PS4.yml index 48d71b933..a7b0d81ff 100644 --- a/.github/workflows/PS4.yml +++ b/.github/workflows/PS4.yml @@ -5,7 +5,9 @@ on: branches: - master pull_request: - types: [ opened, synchronize ] + types: [opened, synchronize] + release: + types: [published] jobs: ps4: @@ -34,6 +36,13 @@ jobs: if: ${{ !env.ACT }} uses: actions/upload-artifact@v2 with: - name: devilutionx.pkg + name: devilutionx-ps4.pkg path: build-ps4/devilutionx.pkg + - name: Update Release + if: ${{ github.event_name == 'release' && !env.ACT }} + uses: svenstaro/upload-release-action@v2 + with: + asset_name: devilutionx-ps4.pkg + file: build-ps4/devilutionx.pkg + overwrite: true