aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/release-aur.yml
blob: 7fb7dbe8c71cbf817925b9175eafe49b3e18345c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release to AUR

on:
  workflow_dispatch:
  push:
    branches: [master]
    paths:
      - epy.py
      - tests/**
      - epy_extras/**

jobs:
  tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Generate PKGBUILD
        run: |
          mkdir -p ./tmp
          bash build/gen_pkgbuild.sh > ./tmp/PKGBUILD
          cat ./tmp/PKGBUILD
      - name: Publish AUR package
        uses: KSXGitHub/github-actions-deploy-aur@v2.2.5
        with:
          pkgname: epy-git
          pkgbuild: ./tmp/PKGBUILD
          commit_username: ${{ secrets.AUR_USERNAME }}
          commit_email: ${{ secrets.AUR_EMAIL }}
          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
          commit_message: Update AUR package