diff --git a/.github/workflows/opendingux_release.yml b/.github/workflows/opendingux_release.yml index b354fc6b0..8313ccc83 100644 --- a/.github/workflows/opendingux_release.yml +++ b/.github/workflows/opendingux_release.yml @@ -36,6 +36,17 @@ jobs: name: devilutionx-rg350.opk.zip path: build-rg350/devilutionx-rg350.opk + - name: Update Release + if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + uses: ncipollo/release-action@v1 + with: + artifacts: "build-rg350/devilutionx-rg350.opk" + allowUpdates: true + omitBody: true + omitName: true + omitPrereleaseDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }} + lepus: runs-on: ubuntu-latest steps: @@ -65,3 +76,14 @@ jobs: with: name: devilutionx-lepus.opk.zip path: build-lepus/devilutionx-lepus.opk + + - name: Update Release + if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + uses: ncipollo/release-action@v1 + with: + artifacts: "build-lepus/devilutionx-lepus.opk" + allowUpdates: true + omitBody: true + omitName: true + omitPrereleaseDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/retrofw_release.yml b/.github/workflows/retrofw_release.yml index b89ed8281..75b206116 100644 --- a/.github/workflows/retrofw_release.yml +++ b/.github/workflows/retrofw_release.yml @@ -36,3 +36,14 @@ jobs: with: name: devilutionx-retrofw.opk.zip path: build-retrofw/devilutionx-retrofw.opk + + - name: Update Release + if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + uses: ncipollo/release-action@v1 + with: + artifacts: "build-retrofw/devilutionx-retrofw.opk" + allowUpdates: true + omitBody: true + omitName: true + omitPrereleaseDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/src_dist_release.yml b/.github/workflows/src_dist_release.yml index 37624a0a8..6110aced0 100644 --- a/.github/workflows/src_dist_release.yml +++ b/.github/workflows/src_dist_release.yml @@ -21,11 +21,22 @@ jobs: - name: Build working-directory: ${{github.workspace}} - run: tools/make_src_dist.py + run: tools/make_src_dist.py && mv build-src-dist/devilutionx-*.tar.xz devilutionx-src.tar.xz - name: Upload-Package if: ${{ !env.ACT }} uses: actions/upload-artifact@v2 with: name: devilutionx-src.tar.xz - path: build-src-dist/devilutionx-*.tar.xz + path: devilutionx-src.tar.xz + + - name: Update Release + if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + uses: ncipollo/release-action@v1 + with: + artifacts: "devilutionx-src.tar.xz" + allowUpdates: true + omitBody: true + omitName: true + omitPrereleaseDuringUpdate: true + token: ${{ secrets.GITHUB_TOKEN }}