Skip to content

Commit 39f6283

Browse files
authored
Merge branch 'master' into update-version-4.8.1
2 parents 3bbc951 + 63a3937 commit 39f6283

File tree

6 files changed

+44
-8
lines changed

6 files changed

+44
-8
lines changed

.SRCINFO

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ pkgbase = code-server
1515
sha512sums_x86_64 = d23f0526c206bed5e12fb9859b64732da97e66367823507042d32cc7047f16e844f323f88376390211a5fe48b9ae66d7430951106365d7b29f12b8cd23103933
1616
source_aarch64 = https://github.com/cdr/code-server/releases/download/v4.8.1/code-server-4.8.1-linux-arm64.tar.gz
1717
sha512sums_aarch64 = 379d5d1c7722506b2b6129488b1ac024412cbdac91f010446f4bffa599babfdbe955972bc34ab3395c5c5ab89207f897ca1aa5e631e512db26dac5558dd79e60
18-
1918
pkgname = code-server

.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 & 1 deletion
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

@@ -27,7 +28,6 @@ sha512sums=('7040df09c7404a56dbbb32e09d04ead3b622773520feae19c6710656cef46ca5d79
2728
'ab8e679c05f6184f163dccf0651e8c1fac22a29ae583148f8c93b6930ece27cdff45a48b425e8b15b8c8ce749015680a3ae8225b7e8037979ff3d228f396f629')
2829
sha512sums_x86_64=('d23f0526c206bed5e12fb9859b64732da97e66367823507042d32cc7047f16e844f323f88376390211a5fe48b9ae66d7430951106365d7b29f12b8cd23103933')
2930
sha512sums_aarch64=('379d5d1c7722506b2b6129488b1ac024412cbdac91f010446f4bffa599babfdbe955972bc34ab3395c5c5ab89207f897ca1aa5e631e512db26dac5558dd79e60')
30-
3131
package() {
3232
if [[ ${CARCH} == x86_64 ]]; then
3333
release_name+=-amd64

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.

update.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# Description: This is a script to update the version
3-
# Run it with `sh update.sh` and it will do the following:
3+
# Run it with `sh update.sh <version>` and it will do the following:
44
# 1. Update the `pkgver` in `PKGBUILD` to the latest version
55
# 2. Run `updpkgsums` to update the sha256 sums
66
# - If you don't have it installed, run `sudo pacman -S pacman-contrib`
@@ -10,7 +10,6 @@
1010
# makepkg --printsrcinfo > .SRCINFO
1111
# ```
1212
# 4. Push changes to GitHub: `git push`
13-
# If you want to perform a dry run of this script run DRY_RUN=1 yarn release:prep
1413

1514
set -euo pipefail
1615

@@ -26,11 +25,15 @@ main() {
2625
ls
2726
grep "pkgver=" PKGBUILD
2827
CODE_SERVER_CURRENT_VERSION=$(grep "pkgver=" PKGBUILD | cut -d "=" -f2-)
29-
# Ask which version we should update to
30-
# In the future, we'll automate this and determine the latest version automatically
3128
echo "Current version: ${CODE_SERVER_CURRENT_VERSION}"
3229

33-
read -r -p "What version of code-server do you want to update to?"$'\n' CODE_SERVER_VERSION_TO_UPDATE
30+
CODE_SERVER_VERSION_TO_UPDATE=${1:-""}
31+
32+
if [ "$CODE_SERVER_VERSION_TO_UPDATE" == "" ]; then
33+
echo "Please call this script with the version to update to."
34+
echo "i.e. 4.5.2"
35+
exit 1
36+
fi
3437

3538
echo -e "Great! We'll update to $CODE_SERVER_VERSION_TO_UPDATE\n"
3639

0 commit comments

Comments
 (0)