ci: allow us to re-run AUR CI (#1184)
* ci: allow us to re-run AUR CI * ci: no need to set shell as it is Linux
This commit is contained in:
25
.github/workflows/release_to_aur.yml
vendored
25
.github/workflows/release_to_aur.yml
vendored
@@ -8,23 +8,40 @@ on:
|
|||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
# Example: 16.0.4
|
||||||
|
version:
|
||||||
|
description: "The version of this manual release, e.g., 16.0.4"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
aur-publish:
|
aur-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Determine version
|
||||||
|
id: determine_version
|
||||||
|
run: |
|
||||||
|
if [ -n "${{ github.event.inputs.version }}" ]; then
|
||||||
|
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
# GITHUB_REF should be something like "v16.0.4", remove the prefix v here
|
||||||
|
echo "version=${GITHUB_REF#v}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Publish source AUR package
|
- name: Publish source AUR package
|
||||||
uses: aksh1618/update-aur-package@v1.0.5
|
uses: varabyte/update-aur-package@v1.0.5
|
||||||
with:
|
with:
|
||||||
tag_version_prefix: v
|
version: ${{ steps.determine_version.outputs.version }}
|
||||||
package_name: topgrade
|
package_name: topgrade
|
||||||
commit_username: "Thomas Schönauer"
|
commit_username: "Thomas Schönauer"
|
||||||
commit_email: t.schoenauer@hgs-wt.at
|
commit_email: t.schoenauer@hgs-wt.at
|
||||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Publish binary AUR package
|
- name: Publish binary AUR package
|
||||||
uses: aksh1618/update-aur-package@v1.0.5
|
uses: varabyte/update-aur-package@v1.0.5
|
||||||
with:
|
with:
|
||||||
tag_version_prefix: v
|
version: ${{ steps.determine_version.outputs.version }}
|
||||||
package_name: topgrade-bin
|
package_name: topgrade-bin
|
||||||
commit_username: "Thomas Schönauer"
|
commit_username: "Thomas Schönauer"
|
||||||
commit_email: t.schoenauer@hgs-wt.at
|
commit_email: t.schoenauer@hgs-wt.at
|
||||||
|
|||||||
Reference in New Issue
Block a user