Fix pipelines

This commit is contained in:
Bernd Schoolmann 2024-05-04 05:43:57 +02:00
parent e74310d90a
commit 24e34794f6
No known key found for this signature in database
2 changed files with 12 additions and 12 deletions

View File

@ -33,6 +33,6 @@ build() {
package() {
cd "$pkgname-$pkgver"
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 "$srcdir/$pkgname-$pkgver/resources/com.quexten.goldwarden.policy" "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
install -Dm644 "$srcdir/$pkgname-$pkgver/cli/resources/com.quexten.goldwarden.policy" "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
chown root:root "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
}

View File

@ -31,7 +31,7 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Install libfido2-dev
run: sudo apt-get install -y libfido2-dev
- name: Build
@ -48,8 +48,8 @@ jobs:
cp -p goldwarden_linux_x86_64 .rpmpkg/usr/bin/goldwarden
mkdir -p .debpkg/usr/share/polkit-1/actions/
mkdir -p .rpmpkg/usr/share/polkit-1/actions/
cp -p resources/com.quexten.goldwarden.policy .debpkg/usr/share/polkit-1/actions/
cp -p resources/com.quexten.goldwarden.policy .rpmpkg/usr/share/polkit-1/actions/
cp -p cli/resources/com.quexten.goldwarden.policy .debpkg/usr/share/polkit-1/actions/
cp -p cli/resources/com.quexten.goldwarden.policy .rpmpkg/usr/share/polkit-1/actions/
- uses: jiro4989/build-deb-action@v3
with:
package: goldwarden
@ -84,7 +84,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -101,7 +101,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -119,7 +119,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -142,7 +142,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -165,7 +165,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -188,7 +188,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
run: echo "${{ github.event.release.tag_name }}" > ./cli/cmd/version.txt
- name: Set up Go
uses: actions/setup-go@v4
with:
@ -208,7 +208,7 @@ jobs:
- name: Write version
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
- name: Replace version in PKGBUILD
run: sed -i "s/pkgver=.*/pkgver=${GITHUB_REF#refs\/tags\//}/" ./.github/workflows/PKGBUILD
run: sed -i "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/" ./.github/workflows/PKGBUILD
- name: Publish AUR package
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
with: