Skip to content

Temporarily hardcode version #265

Temporarily hardcode version

Temporarily hardcode version #265

Workflow file for this run

name: Native CI/CD
on:
- push
defaults:
run:
shell: bash
jobs:
release-aur:
name: Release on Arch User Repository
runs-on: ubuntu-latest
container: archlinux
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install required packages
run: pacman -Syu pacman-contrib pacman namcap sudo --noconfirm --needed
- name: Prepare non-root user
run: chown -R nobody .
- name: Update PKGBUILDs
run: |
echo "::group::Setting the package versions"
VERSION=2.12.1
echo "VERSION=$VERSION" >> $GITHUB_ENV
sed -i "s/pkgver=\$VERSION/pkgver=\"$VERSION\"/g" native/packages/aur/firefox-pwa/PKGBUILD
sed -i "s/pkgver=\$VERSION/pkgver=\"$VERSION\"/g" native/packages/aur/firefox-pwa-bin/PKGBUILD
echo "::endgroup::"
echo "::group::Updating the package checksums"
(cd native/packages/aur/firefox-pwa && sudo -u nobody updpkgsums)
(cd native/packages/aur/firefox-pwa-bin && sudo -u nobody updpkgsums)
echo "::endgroup::"
- name: Verify PKGBUILDs
run: |
# Binary version is skipped because namcap doesn't work with arch-specific sources
(cd native/packages/aur/firefox-pwa && namcap -i PKGBUILD)
- name: Release firefox-pwa package
uses: KSXGitHub/github-actions-deploy-aur@063daf78a56662642bb00049ce78425ff6d0fad7
with:
pkgname: firefox-pwa
pkgbuild: ./native/packages/aur/firefox-pwa/PKGBUILD
assets: ./native/packages/aur/firefox-pwa/**
commit_message: Update to ${{ env.VERSION }}
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519
- name: Release firefox-pwa-bin package
uses: KSXGitHub/github-actions-deploy-aur@063daf78a56662642bb00049ce78425ff6d0fad7
with:
pkgname: firefox-pwa-bin
pkgbuild: ./native/packages/aur/firefox-pwa-bin/PKGBUILD
assets: ./native/packages/aur/firefox-pwa-bin/**
commit_message: Update to ${{ env.VERSION }}
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519