ci: Delete intermediary artifact to encourage correct package #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ⚙️ CI | |
on: | |
push: | |
branches: | |
- "main" | |
- "release/**" | |
paths-ignore: | |
- "*.md" | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
# Cancel in-progress runs on PR update and on push. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-extension: | |
name: 🔌 Build GDExtension | |
uses: ./.github/workflows/build_gdextension.yml | |
unit-tests: | |
name: 🧪 Unit tests | |
needs: build-extension | |
uses: ./.github/workflows/unit_tests.yml | |
package: | |
name: 📦 Package | |
needs: build-extension | |
uses: ./.github/workflows/package.yml | |
# Deleting "sentry-godot-gdextension" artifact due to broken file permissions. | |
# This encourages using the artifact from the "package" job instead which has correct permissions. | |
# See issue: https://github.com/getsentry/sentry-godot/issues/41 | |
cleanup: | |
name: 🗑️ Cleanup | |
needs: [package, unit-tests] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete sentry-godot-gdextension artifact | |
uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5.1.0 | |
with: | |
name: sentry-godot-gdextension |