From 3fadf13c34b432a795b6d32c511eb977c2e2dafc Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 18 Aug 2022 15:43:08 -0700 Subject: [PATCH 1/3] feat: add publish workflow --- .github/workflows/publish.yaml | 28 ++++++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..dc785b5 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +name: Publish + +on: + push: + branches: + - master + +jobs: + aur: + name: Publish + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Publish AUR package + uses: KSXGitHub/github-actions-deploy-aur@v2.5.0 + with: + pkgname: code-server + pkgbuild: ./PKGBUILD + commit_username: ${{ secrets.AUR_USERNAME }} + commit_email: ${{ secrets.AUR_EMAIL }} + ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} + commit_message: Update AUR package + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 697ad82..2e70d90 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ !.SRCINFO !.gitignore !README.md -!update.sh \ No newline at end of file +!update.sh +!.github \ No newline at end of file From 04481da1e7b9ed7f5831dec586fd1305e14fd91d Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 18 Aug 2022 15:43:20 -0700 Subject: [PATCH 2/3] chore: add cdrci as maintainer --- .github/workflows/publish.yaml | 2 +- .gitignore | 2 +- PKGBUILD | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index dc785b5..4e01ffe 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -25,4 +25,4 @@ jobs: commit_email: ${{ secrets.AUR_EMAIL }} ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} commit_message: Update AUR package - ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 \ No newline at end of file + ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 diff --git a/.gitignore b/.gitignore index 2e70d90..bf779f6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ !.gitignore !README.md !update.sh -!.github \ No newline at end of file +!.github diff --git a/PKGBUILD b/PKGBUILD index a5921fc..3740f02 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,7 @@ # Maintainer: Colin Adler # Maintainer: Asher # Maintainer: Joe Previte +# Maintainer: cdrci # Contributor: Teffen Ellis # Contributor: Anmol From d41bd105d3253b592d1ca5046f94501342fb1fcf Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 18 Aug 2022 15:52:09 -0700 Subject: [PATCH 3/3] docs: add automated section --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 7c546ce..e997050 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,8 @@ If a new maintainer joins the project, please add them to the top of `PKGBUILD`. ### Removing Old Maintainers Instead of removing them completely, change their title from "Maintainer" to "Contributor". + +### Automated publishing + +@jsjoeio created an account under `cdrci` for automating publishing the AUR +package. If you need these credentials, please ask him.