diff --git a/.github/workflows/ci-linux-artifacts.yml b/.github/workflows/ci-linux-artifacts.yml index 86780a580c..a2179dbf92 100644 --- a/.github/workflows/ci-linux-artifacts.yml +++ b/.github/workflows/ci-linux-artifacts.yml @@ -2,8 +2,7 @@ name: CI Linux Release Artifacts on: - release: - types: [created] + pull_request: permissions: contents: write @@ -48,19 +47,7 @@ jobs: avifenc avifdec - name: Upload artifacts - uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - # See https://docs.github.com/en/webhooks/webhook-events-and-payloads#release. - upload_url: ${{ github.event.release.upload_url }} - asset_path: build/linux-artifacts.zip - asset_name: linux-artifacts.zip - asset_content_type: application/zip - - # Use the following instead of the above to test this workflow outside of a release event. - # - name: Upload artifacts - # uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 - # with: - # name: linux-artifacts.zip - # path: build/linux-artifacts.zip + name: linux-artifacts.zip + path: build/linux-artifacts.zip diff --git a/.github/workflows/ci-macos-artifacts.yml b/.github/workflows/ci-macos-artifacts.yml index 0148d0dabc..622d3d4149 100644 --- a/.github/workflows/ci-macos-artifacts.yml +++ b/.github/workflows/ci-macos-artifacts.yml @@ -2,8 +2,7 @@ name: CI macOS Release Artifacts on: - release: - types: [created] + pull_request: permissions: contents: write @@ -59,19 +58,7 @@ jobs: avifdec README.txt - name: Upload artifacts - uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - # See https://docs.github.com/en/webhooks/webhook-events-and-payloads#release. - upload_url: ${{ github.event.release.upload_url }} - asset_path: build/${{ runner.os }}-artifacts.zip - asset_name: ${{ runner.os }}-artifacts.zip - asset_content_type: application/zip - - # Use the following instead of the above to test this workflow outside of a release event. - # - name: Upload artifacts - # uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 - # with: - # name: ${{ runner.os }}-artifacts.zip - # path: build/${{ runner.os }}-artifacts.zip + name: ${{ runner.os }}-artifacts.zip + path: build/${{ runner.os }}-artifacts.zip diff --git a/.github/workflows/ci-windows-artifacts.yml b/.github/workflows/ci-windows-artifacts.yml index 78947e74ec..9f9f31851f 100644 --- a/.github/workflows/ci-windows-artifacts.yml +++ b/.github/workflows/ci-windows-artifacts.yml @@ -2,8 +2,7 @@ name: CI Windows Release Artifacts on: - release: - types: [created] + pull_request: permissions: contents: write @@ -75,19 +74,7 @@ jobs: directory: "build/Release" path: "*.exe" - name: Upload artifacts - uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - # See https://docs.github.com/en/webhooks/webhook-events-and-payloads#release. - upload_url: ${{ github.event.release.upload_url }} - asset_path: build/Release/windows-artifacts.zip - asset_name: windows-artifacts.zip - asset_content_type: application/zip - - # Use the following instead of the above to test this workflow outside of a release event. - # - name: Upload artifacts - # uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 - # with: - # name: windows-artifacts.zip - # path: build/Release/windows-artifacts.zip + name: windows-artifacts.zip + path: build/Release/windows-artifacts.zip