Skip to content

Commit

Permalink
Fix pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed May 4, 2024
1 parent e74310d commit 24e3479
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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/[email protected]
with:
Expand All @@ -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

0 comments on commit 24e3479

Please sign in to comment.