Try Gitea Releases

This commit is contained in:
TheBrokenRail 2023-09-20 20:54:07 -04:00
parent da9edee160
commit 7a5fef7024

View File

@ -1,28 +1,40 @@
name: 'Build' name: 'Build'
on: push on:
push:
branches:
- master
tags:
- '*'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:16-buster container: node:16-buster
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
submodules: true submodules: true
- name: Install CMake - name: Install CMake
run: | run: |
echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list
apt-get update apt-get update
apt-get install --no-install-recommends -y -t buster-backports cmake apt-get install --no-install-recommends -y -t buster-backports cmake
- name: Install Dependencies - name: Install Dependencies
run: ./scripts/install-dependencies.sh amd64 armhf arm64 run: ./scripts/install-dependencies.sh amd64 armhf arm64
- name: Build - name: Build
run: | run: |
chmod +x ./scripts/ci/run.sh chmod +x ./scripts/ci/run.sh
./scripts/ci/run.sh ./scripts/ci/run.sh
- name: Upload Artifacts - name: Upload Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
path: ./out/**/*.AppImage 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