Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
svenrademakers committed Aug 18, 2023
1 parent 5b9c9fd commit 6b2d08f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/pkgbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release build
run-name: Release pipeline by @${{ github.actor }}
on: push
#on:
# push:
# tags:
# - '[0-9]+.[0-9]+.[0-9]+'
jobs:
pkgbuild:
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: check
- run: mv ./target/*/build/tpi-*/out/PKGBUILD .
- run: makepkg -g >> PKGBUILD
- run: makepkg --printsrcinfo > .SRCINFO
- name: archive
uses: actions/upload-artifact@v3
with:
name: 'PKGBUILD'
path: |
PKGBUILD
.SRCINFO
pkgcommit:
needs: pkgbuild
steps:
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.AUR_DEPLOY_KEY }}
- name: checkout AUR repo
run: |
git config --global user.email "sven@turingpi.com"
git config --global user.name "github-ci"
git config --global credential.helper cache
git clone ssh://aur@aur.archlinux.org/tpi.git
- name: download archive
uses: actions/download-artifact@v3
with:
name: 'PKGBUILD'
path: tpi
- name: "update AUR repository with ${{ github.ref_name }}"
run: |
cd tpi
git add PKGBUILD .SRCINFO
git commit -m "update to ${{ github.ref_name }} release"
git push

0 comments on commit 6b2d08f

Please sign in to comment.