-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b9c9fd
commit bc88d45
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Release build | ||
run-name: Release pipeline by @${{ github.actor }} | ||
on: push | ||
#on: | ||
# push: | ||
# tags: | ||
# - '[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
# pkgbuild: | ||
# runs-on: ubuntu-latest | ||
# 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 . | ||
# - name: Validate package | ||
# uses: hapakaien/archlinux-package-action@v2 | ||
# with: | ||
# flags: '' | ||
# namcap: false | ||
# updpkgsums: true | ||
# srcinfo: true | ||
# - name: archive | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: 'PKGBUILD' | ||
# path: | | ||
# PKGBUILD | ||
# .SRCINFO | ||
|
||
pkgcommit: | ||
# needs: pkgbuild | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: webfactory/ssh-agent@v0.8.0 | ||
with: | ||
ssh-private-key: ${{ secrets.AUR_DEPLOY_KEY }} | ||
- run: echo $SSH_AUTH_SOCK | ||
- name: checkout AUR repo | ||
run: | | ||
git config --global user.email "sven@turingpi.com" | ||
git config --global user.name "Sven Rademakers" | ||
git init | ||
- run: git remote add origin ssh://aur@aur.archlinux.org/tpi.git | ||
- run: git fetch | ||
- run: git pull origin | ||
- 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 | ||