Fix pipelines
This commit is contained in:
parent
e74310d90a
commit
24e34794f6
|
@ -33,6 +33,6 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
cd "$pkgname-$pkgver"
|
||||||
install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
|
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"
|
chown root:root "$pkgdir/usr/share/polkit-1/actions/com.quexten.goldwarden.policy"
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Write 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
|
- name: Install libfido2-dev
|
||||||
run: sudo apt-get install -y libfido2-dev
|
run: sudo apt-get install -y libfido2-dev
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -48,8 +48,8 @@ jobs:
|
||||||
cp -p goldwarden_linux_x86_64 .rpmpkg/usr/bin/goldwarden
|
cp -p goldwarden_linux_x86_64 .rpmpkg/usr/bin/goldwarden
|
||||||
mkdir -p .debpkg/usr/share/polkit-1/actions/
|
mkdir -p .debpkg/usr/share/polkit-1/actions/
|
||||||
mkdir -p .rpmpkg/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 cli/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 .rpmpkg/usr/share/polkit-1/actions/
|
||||||
- uses: jiro4989/build-deb-action@v3
|
- uses: jiro4989/build-deb-action@v3
|
||||||
with:
|
with:
|
||||||
package: goldwarden
|
package: goldwarden
|
||||||
|
@ -84,7 +84,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -101,7 +101,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -119,7 +119,7 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -142,7 +142,7 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -165,7 +165,7 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -188,7 +188,7 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Write 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: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
@ -208,7 +208,7 @@ jobs:
|
||||||
- name: Write version
|
- name: Write version
|
||||||
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
|
run: echo "${GITHUB_REF#refs/tags/}" > ./cli/cmd/version.txt
|
||||||
- name: Replace version in PKGBUILD
|
- 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
|
- name: Publish AUR package
|
||||||
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
|
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue