Browse Source

GitHub CI: Automatically add files to the release

pull/3681/head
Gleb Mazovetskiy 4 years ago
parent
commit
93d450ab4e
  1. 22
      .github/workflows/opendingux_release.yml
  2. 11
      .github/workflows/retrofw_release.yml
  3. 15
      .github/workflows/src_dist_release.yml

22
.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 }}

11
.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 }}

15
.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 }}

Loading…
Cancel
Save