From 7a5fef7024f5d92bf6eb89e90e3c72e8741b01f4 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Wed, 20 Sep 2023 20:54:07 -0400 Subject: [PATCH] Try Gitea Releases --- .gitea/workflows/build.yml | 60 +++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index d7e42d7f7..f7565c95e 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,28 +1,40 @@ name: 'Build' -on: push +on: + push: + branches: + - master + tags: + - '*' jobs: - build: - runs-on: ubuntu-latest - container: node:16-buster - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - with: - submodules: true - - name: Install CMake - run: | - echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list - apt-get update - apt-get install --no-install-recommends -y -t buster-backports cmake - - name: Install Dependencies - run: ./scripts/install-dependencies.sh amd64 armhf arm64 - - name: Build - run: | - chmod +x ./scripts/ci/run.sh - ./scripts/ci/run.sh - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - path: ./out/**/*.AppImage + build: + runs-on: ubuntu-latest + container: node:16-buster + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + with: + submodules: true + - name: Install CMake + run: | + echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list + apt-get update + apt-get install --no-install-recommends -y -t buster-backports cmake + - name: Install Dependencies + run: ./scripts/install-dependencies.sh amd64 armhf arm64 + - name: Build + run: | + chmod +x ./scripts/ci/run.sh + ./scripts/ci/run.sh + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + path: ./out/**/*.AppImage* + - name: Create Release + uses: https://gitea.com/actions/release-action@main + if: startsWith(github.ref, 'refs/tags/') + with: + files: ./out/**/*.AppImage* + api_key: ${{ secrets.RELEASE_TOKEN }} + draft: true