From 8626f26c60c60cf9d27892e208d65b451790ac47 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 13 Jun 2024 14:56:29 +0100 Subject: [PATCH] github: Add workflow to publish to Asset Library The workflow is triggered by publishing a release (which is essentially a fancy tag). If it turns out we need to trigger it manually we could later add workflow_dispatch. https://phabricator.endlessm.com/T35503 --- .github/workflows/godot-asset-library.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/godot-asset-library.yaml diff --git a/.github/workflows/godot-asset-library.yaml b/.github/workflows/godot-asset-library.yaml new file mode 100644 index 00000000..090cc355 --- /dev/null +++ b/.github/workflows/godot-asset-library.yaml @@ -0,0 +1,21 @@ +on: + release: + types: + - published + +name: Push to Godot Asset Library + +jobs: + publish: + if: github.event.action == 'released' + runs-on: ubuntu-latest + name: Push new release + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Push to Godot Asset Library + uses: deep-entertainment/godot-asset-lib-action@v0.4.0 + with: + username: ${{ secrets.GODOT_ASSET_LIBRARY_USERNAME }} + password: ${{ secrets.GODOT_ASSET_LIBRARY_PASSWORD }} + assetId: 12617