43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build_arch:
|
|
runs-on: archlinux
|
|
steps:
|
|
|
|
- name: Checkout Current Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Clone External Repository
|
|
run: |
|
|
git clone https://git.elordenador.org/RedSocial/cli_archpkg.git external
|
|
chown -R builder:builder external
|
|
- name: Makepkg
|
|
run: |
|
|
cd external && makepkg -s --noconfirm
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: arch-package
|
|
path: external/*.pkg.tar.zst
|
|
publish-release:
|
|
runs-on: ubuntu-26.04
|
|
needs: build_arch
|
|
steps:
|
|
- name: Download Artifact
|
|
uses: actions/download-artifact@v3
|
|
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 }}
|
|
|