diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..1b7593806d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: 'Deploy website on release' + +on: + release: + types: [published] + +jobs: + forge-deploy: + name: 'Laravel Forge Deploy' + runs-on: ubuntu-latest + + steps: + - name: Deploy + uses: jbrooksuk/laravel-forge-action@v1.0.2 + with: + trigger_url: ${{ secrets.WEBSITE_DEPLOYMENT_TRIGGER_URL }} diff --git a/packages/forms/src/Components/Concerns/HasFileAttachments.php b/packages/forms/src/Components/Concerns/HasFileAttachments.php index f75884d14e..11d128945f 100644 --- a/packages/forms/src/Components/Concerns/HasFileAttachments.php +++ b/packages/forms/src/Components/Concerns/HasFileAttachments.php @@ -129,15 +129,15 @@ trait HasFileAttachments return null; } - if ($storage->getVisibility($file) === 'private') { - try { + try { + if ($storage->getVisibility($file) === 'private') { return $storage->temporaryUrl( $file, now()->addMinutes(5), ); - } catch (Throwable $exception) { - // This driver does not support creating temporary URLs. } + } catch (Throwable $exception) { + // This driver does not support creating temporary URLs. } return $storage->url($file);