diff --git a/.github/workflows/experimental.yml b/.github/workflows/experimental.yml index 07c4b13c2..b37654116 100644 --- a/.github/workflows/experimental.yml +++ b/.github/workflows/experimental.yml @@ -4,75 +4,77 @@ on: workflow_dispatch: push: branches: [ "main" ] - paths: - - "UE4SS/src/**" - - "UE4SS/include/**" - - "UE4SS/generated_src/**" - - "UE4SS/generated_include/**" - - "deps/**" - - "UE4SS/proxy_generator/**" - - "assets/Mods/**" - - "assets/**.ini" permissions: - contents: read - -concurrency: - group: experimental-release - cancel-in-progress: true + contents: write jobs: make-release: - permissions: write-all runs-on: windows-2022 - steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: recursive - fetch-depth: 0 # needed to get commits since last tag - token: ${{ secrets.UEPSEUDO_PAT }} - - name: Setup Python - uses: actions/setup-python@v4 + # 1. Identify Release ID for 'experimental' + - name: Find release ID + id: find_release + uses: octokit/request-action@v2 with: - python-version: '3.9' + route: GET /repos/${{ github.repository }}/releases/tags/experimental + token: ${{ secrets.GITHUB_TOKEN }} + continue-on-error: true - - name: Setup MSVC - uses: ilammy/msvc-dev-cmd@v1 + # 2. If it exists, delete all assets + - name: Delete all assets from 'experimental' + if: ${{ steps.find_release.outputs.status == 200 }} + run: | + echo "Release found, removing assets." + python <