Skip to content

Version 24.5.0.10342 #57

Version 24.5.0.10342

Version 24.5.0.10342 #57

Workflow file for this run

name: Build Archlinux package
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
container:
image: wachii/archlinux:devel
options: --user user
steps:
- name: Fix permissions
run: |
sudo chown user:user ../*
- name: Update
run: sudo pacman -Syu --noconfirm
- name: Checkout
#run: svn co https://github.com/smplayer-dev/smplayer-build.git/trunk/archlinux
run: |
git clone --depth=1 https://github.com/smplayer-dev/smplayer-build.git
mv smplayer-build/archlinux archlinux
- name: Build smplayer
run: |
cd archlinux
./build_smplayer.sh
- name: Create artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: smplayer-archlinux
path: archlinux/*.pkg.tar.zst
- name: Upload package to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./archlinux/*.pkg.tar.zst
tag: ${{ github.ref }}
overwrite: true
file_glob: true