-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (38 loc) · 1.09 KB
/
build-archlinux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 -Sy
- name: Checkout
run: svn co https://github.com/smplayer-dev/smplayer-build.git/trunk/archlinux
- name: Build smtube
run: |
cd archlinux
./build_smtube.sh
- name: Create artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v2
with:
name: smtube-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