Skip to content

Commit 0d9721d

Browse files
authored
Merge pull request #14 from coder/jsjoeio/add-publish
feat: add publish workflow
2 parents 9b76a3b + d41bd10 commit 0d9721d

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
aur:
10+
name: Publish
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Publish AUR package
20+
uses: KSXGitHub/[email protected]
21+
with:
22+
pkgname: code-server
23+
pkgbuild: ./PKGBUILD
24+
commit_username: ${{ secrets.AUR_USERNAME }}
25+
commit_email: ${{ secrets.AUR_EMAIL }}
26+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
27+
commit_message: Update AUR package
28+
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
!.SRCINFO
44
!.gitignore
55
!README.md
6-
!update.sh
6+
!update.sh
7+
!.github

PKGBUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Maintainer: Colin Adler <[email protected]>
22
# Maintainer: Asher <[email protected]>
33
# Maintainer: Joe Previte <[email protected]>
4+
# Maintainer: cdrci <[email protected]>
45
# Contributor: Teffen Ellis <[email protected]>
56
# Contributor: Anmol <[email protected]>
67

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ If a new maintainer joins the project, please add them to the top of `PKGBUILD`.
4141
### Removing Old Maintainers
4242

4343
Instead of removing them completely, change their title from "Maintainer" to "Contributor".
44+
45+
### Automated publishing
46+
47+
@jsjoeio created an account under `cdrci` for automating publishing the AUR
48+
package. If you need these credentials, please ask him.

0 commit comments

Comments
 (0)