Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bfb0dda39 | ||
|
|
ae32ce9c8d | ||
|
|
11c3cec99d | ||
|
|
f69b74ab73 | ||
|
|
bdf1312dd1 | ||
|
|
2544f44309 |
@@ -11,6 +11,8 @@ on:
|
|||||||
version:
|
version:
|
||||||
description: 'Version to publish (e.g. 0.3.4)'
|
description: 'Version to publish (e.g. 0.3.4)'
|
||||||
required: true
|
required: true
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
jobs:
|
jobs:
|
||||||
@@ -66,7 +68,7 @@ jobs:
|
|||||||
- name: Create tarball with binary
|
- name: Create tarball with binary
|
||||||
run: |
|
run: |
|
||||||
tar czf "lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" \
|
tar czf "lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" \
|
||||||
--transform="s/^.*\///" lapctl
|
lapctl LICENSE
|
||||||
- name: Generate PKGBUILD with cargo-aur
|
- name: Generate PKGBUILD with cargo-aur
|
||||||
run: |
|
run: |
|
||||||
cargo install cargo-aur
|
cargo install cargo-aur
|
||||||
@@ -85,7 +87,7 @@ jobs:
|
|||||||
cd /build && su builder -c 'makepkg --printsrcinfo > .SRCINFO'
|
cd /build && su builder -c 'makepkg --printsrcinfo > .SRCINFO'
|
||||||
"
|
"
|
||||||
- name: Push to AUR
|
- name: Push to AUR
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v2.5.0
|
uses: KSXGitHub/github-actions-deploy-aur@v4.1.3
|
||||||
with:
|
with:
|
||||||
pkgname: lapctl-bin
|
pkgname: lapctl-bin
|
||||||
pkgbuild: aur-pkg/PKGBUILD
|
pkgbuild: aur-pkg/PKGBUILD
|
||||||
@@ -94,13 +96,15 @@ jobs:
|
|||||||
ssh_keyscan_types: rsa,ecdsa,ed25519
|
ssh_keyscan_types: rsa,ecdsa,ed25519
|
||||||
commit_username: ${{ github.actor }}
|
commit_username: ${{ github.actor }}
|
||||||
commit_email: ${{ github.actor }}@users.noreply.github.com
|
commit_email: ${{ github.actor }}@users.noreply.github.com
|
||||||
|
allow_empty_commits: true
|
||||||
|
force_push: true
|
||||||
|
post_process: |
|
||||||
|
git add -A && git stash && git checkout master && git checkout stash -- . && git stash drop
|
||||||
- name: Upload tarball to release
|
- name: Upload tarball to release
|
||||||
if: github.ref_type == 'tag'
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload "${{ github.ref_name }}" \
|
TAG="v${{ steps.version.outputs.version }}"
|
||||||
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber 2>/dev/null ||
|
gh release create "$TAG" --title "$TAG" --notes "" 2>/dev/null || true
|
||||||
gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --notes "" &&
|
gh release upload "$TAG" \
|
||||||
gh release upload "${{ github.ref_name }}" \
|
|
||||||
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber
|
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber
|
||||||
Reference in new issue
Block a user