mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-23 21:44:37 +03:00
Fix pipelines
This commit is contained in:
parent
e74310d90a
commit
24e34794f6
2
.github/workflows/PKGBUILD
vendored
2
.github/workflows/PKGBUILD
vendored
@ -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"
|
||||
}
|
||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -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:
|
||||
@ -219,4 +219,4 @@ jobs:
|
||||
commit_email: ${{ secrets.AUR_EMAIL }}
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
commit_message: Update AUR package from GitHub Actions automation
|
||||
ssh_keyscan_types: ed25519
|
||||
ssh_keyscan_types: ed25519
|
||||
|
Loading…
Reference in New Issue
Block a user