Files
cli/.gitea/workflows/build.yml
T
elordenador b86deef6de
Build / build_arch (push) Failing after 1m9s
Build / publish-release (push) Has been skipped
Add node.js to build_env
2026-05-13 09:56:59 +02:00

48 lines
1.3 KiB
YAML

name: Build
on: [push]
jobs:
build_arch:
runs-on: archlinux
steps:
- name: Prepare Arch Environment
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm base-devel git nodejs
useradd -m builder
chown -R builder:builder ./
- name: Checkout Current Repo
uses: actions/checkout@v4
- name: Clone External Repository
run: |
git clone https://git.elordenador.org/RedSocial/cli_archpkg.git external
- name: Makepkg
run: |
sudo -u builder bash -c "cd external && makepkg -s --noconfirm"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: arch-package
path: external/*.pkg.tar.zst
publish-release:
runs-on: ubuntu-latest
needs: build_arch
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: arch-package
path: ./dist
- name: Create Release and Upload Assets
uses: https://github.com/softprops/action-gh-release@v1
with:
files: ./dist/*.pkg.tar.zst
tag_name: ${{ github.ref_name }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}