Skip to content

feat: add publish workflow #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
!.SRCINFO
!.gitignore
!README.md
!update.sh
!update.sh
!.github
1 change: 1 addition & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Maintainer: Colin Adler <[email protected]>
# Maintainer: Asher <[email protected]>
# Maintainer: Joe Previte <[email protected]>
# Maintainer: cdrci <[email protected]>
# Contributor: Teffen Ellis <[email protected]>
# Contributor: Anmol <[email protected]>

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.