diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..4e01ffe --- /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 diff --git a/.gitignore b/.gitignore index 697ad82..bf779f6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ !.SRCINFO !.gitignore !README.md -!update.sh \ No newline at end of file +!update.sh +!.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 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.