k3d/.github/workflows/aur-release.yml
Jonas Dellinger e5660f4b1f
[Enhancement] CI/CD: AUR Deploy Script (#391, thanks @JohnnyCrazy)
* Added script for automatic AUR release & added steps in .drone.yml

* Don't run AUR release before actual release

* Switch to GitHub Actions

* Try the 'container' setting and checkout repo first

* Readable deploy-aur.sh script, final draft

* Revert changes in .drone.yml

* GITHUB_REF needs to be stripped for the pre-release script

* Introduce COMMIT_REF on top of script, so it can be modified for both type of releases

* Adjust names to new k3d AUR account
2020-11-03 19:07:02 +01:00

24 lines
587 B
YAML

name: AUR Release
on:
release:
types: [released]
jobs:
aur-release:
runs-on: ubuntu-latest
container: archlinux:20200705
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Publish Release to AUR
run: |
export COMMIT_REF=$GITHUB_REF
./deploy-aur.sh
env:
PACKAGE_NAME: rancher-k3d-bin
COMMIT_USERNAME: Travis CI
COMMIT_EMAIL: iwilltry42+k3d@gmail.com
COMMIT_MESSAGE: "[CI] Updated to $NEW_RELEASE"
SSH_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}