Skip to content

Workflow file for this run

name: Build Arch Linux Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write # 确保具有写权限
env:
TAG_NAME: "auto"
SOFTWARE_NAME: "lfy"
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Update system and install dependencies
run: |
pacman -Syu --noconfirm
pacman -S --needed --noconfirm base-devel git
- name: Install any other required packages
run: |
# 根据需要替换这里的命令
pacman -S --noconfirm meson libadwaita python-gobject python-requests make python-pyqt6 appstream-glib
- name: Build package
run: |
make test-aur
make BUILD_TYPE=gtk test-aur
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
prerelease: true
draft: false
files: |
dist/*