mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:48:30 +00:00
update aur publish
This commit is contained in:
8
.github/workflows/aur.yml
vendored
8
.github/workflows/aur.yml
vendored
@@ -2,6 +2,10 @@ name: AUR Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: "Tag version without v prefix (e.g. 0.2.2)"
|
||||||
|
required: true
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
@@ -21,7 +25,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
|
||||||
|
PKGVER="${{ inputs.version }}"
|
||||||
|
else
|
||||||
PKGVER="${GITHUB_REF_NAME#v}"
|
PKGVER="${GITHUB_REF_NAME#v}"
|
||||||
|
fi
|
||||||
SRC_URL="https://github.com/dexoron/dcr/archive/refs/tags/v${PKGVER}.tar.gz"
|
SRC_URL="https://github.com/dexoron/dcr/archive/refs/tags/v${PKGVER}.tar.gz"
|
||||||
SHA256="$(curl -fsSL "$SRC_URL" | sha256sum | awk '{print $1}')"
|
SHA256="$(curl -fsSL "$SRC_URL" | sha256sum | awk '{print $1}')"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user