rewrite: rewrote as github actions runnable

This commit is contained in:
2026-05-05 19:02:03 +02:00
parent 28e6506d05
commit 0fbf1b0663
12 changed files with 225 additions and 540 deletions
+44
View File
@@ -0,0 +1,44 @@
name: Build and Release
on:
workflow_dispatch:
inputs:
version:
description: "webkit2gtk version to build (e.g. 1.1.1)"
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest-64-cores
container:
image: archlinux:latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Build webkit2gtk package
id: build
run: bash scripts/build-package.sh
- name: Create GitHub release and upload artifact
id: release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bash scripts/create-release.sh \
"${{ inputs.version }}" \
"${{ steps.build.outputs.pkg_path }}"
- name: Update webkit2gtk-bin AUR package
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
run: |
bash scripts/update-aur.sh \
"${{ inputs.version }}" \
"${{ steps.build.outputs.pkg_path }}" \
"${{ steps.release.outputs.asset_url }}"
+32
View File
@@ -0,0 +1,32 @@
name: Version check
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Check AUR against release version
id: check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash scripts/check-version.sh
- name: Trigger build-release workflow
if: steps.check.outputs.trigger_version != ''
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run build-release.yml \
--repo "${{ github.repository }}" \
--field version="${{ steps.check.outputs.trigger_version }}"