update AUR submod #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, upload, and publish Arch Linux package | |
on: | |
push: | |
tags: | |
- '[0-9]*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: archlinux:base-devel | |
steps: | |
- uses: actions/checkout@v2 | |
- name: prepare build ctnr | |
run: | | |
pacman-key --init | |
pacman --noconfirm -Syu | |
pacman --noconfirm -S git | |
useradd -m dev | |
printf "%s\n" "dev ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/dev | |
runuser -u dev -- git clone https://aur.archlinux.org/telegram-desktop-userfonts.git /home/dev/telegram-desktop-userfonts | |
- name: build pkg | |
working-directory: /home/dev/telegram-desktop-userfonts | |
run: | | |
runuser -u dev -- makepkg --noconfirm -s | |
ls -l | |
pkg="$(sh -c "printf '%s\n' telegram-desktop-userfonts-[0-9]*.pkg.*")" | |
echo "PKGNAME=$pkg" >>$GITHUB_ENV | |
echo "PKGPATH=${PWD}/${pkg}" >>$GITHUB_ENV | |
- name: preserve artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.PKGNAME }} | |
path: ${{ env.PKGPATH }} | |
- name: create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ${{ env.PKGPATH }} | |