Skip to content

Commit dca02a6

Browse files
committed
Merge branch 'release/1.6-alpha' of github.com:DefGuard/client into swift_plugin
2 parents 4085b35 + 16e2f95 commit dca02a6

8 files changed

Lines changed: 277 additions & 66 deletions

File tree

.github/workflows/build-macos.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Build macOS app
22
on:
3-
workflow_call:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
- "release/**"
8+
paths-ignore:
9+
- "*.md"
10+
- "LICENSE"
11+
tags:
12+
- v*.*.*
413

514
jobs:
615
build-macos:

.github/workflows/release.yaml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
tags:
55
- v*.*.*
6+
67
jobs:
78
create-release:
89
name: create-release
@@ -111,7 +112,6 @@ jobs:
111112
112113
deb-s3 upload -l --bucket=apt.defguard.net --access-key-id=${{ secrets.AWS_ACCESS_KEY_APT }} --secret-access-key=${{ secrets.AWS_SECRET_KEY_APT }} --s3-region=eu-north-1 --no-fail-if-exists --codename=bookworm --component="$COMPONENT" src-tauri/target/release/bundle/deb/defguard-client_${{ env.VERSION }}_${{ matrix.deb_arch }}.deb
113114
114-
115115
build-linux:
116116
needs:
117117
- create-release
@@ -395,11 +395,6 @@ jobs:
395395
cat PKGBUILD
396396
cat .SRCINFO
397397
398-
build-macos:
399-
needs:
400-
- create-release
401-
uses: ./.github/workflows/build-macos.yml
402-
403398
# Builds Windows MSI and uploads it as artifact
404399
build-windows:
405400
needs:
@@ -481,40 +476,3 @@ jobs:
481476
asset_path: defguard-client-signed.msi
482477
asset_name: defguard-client_${{ env.VERSION }}_x64_en-US.msi
483478
asset_content_type: application/octet-stream
484-
485-
apt-sign:
486-
needs:
487-
- build-linux
488-
- ubuntu-22-04-build
489-
runs-on:
490-
- self-hosted
491-
- Linux
492-
- X64
493-
strategy:
494-
fail-fast: false
495-
steps:
496-
- name: Sign APT repository
497-
run: |
498-
export AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_APT }}
499-
export AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_KEY_APT }}
500-
export AWS_REGION=eu-north-1
501-
sudo apt update -y
502-
sudo apt install -y awscli curl jq
503-
504-
for DIST in trixie bookworm; do
505-
aws s3 cp s3://apt.defguard.net/dists/${DIST}/Release .
506-
507-
curl -X POST "${{ secrets.DEFGUARD_SIGNING_URL }}?signature_type=both" \
508-
-H "Authorization: Bearer ${{ secrets.DEFGUARD_SIGNING_API_KEY }}" \
509-
-F "file=@Release" \
510-
-o response.json
511-
512-
cat response.json | jq -r '.files["Release.gpg"].content' | base64 --decode > Release.gpg
513-
cat response.json | jq -r '.files.Release.content' | base64 --decode > InRelease
514-
515-
aws s3 cp Release.gpg s3://apt.defguard.net/dists/${DIST}/ --acl public-read
516-
aws s3 cp InRelease s3://apt.defguard.net/dists/${DIST}/ --acl public-read
517-
518-
done
519-
(aws s3 ls s3://apt.defguard.net/dists/ --recursive; aws s3 ls s3://apt.defguard.net/pool/ --recursive) | awk '{print "<a href=\""$4"\">"$4"</a><br>"}' > index.html
520-
aws s3 cp index.html s3://apt.defguard.net/ --acl public-read

src-tauri/Cargo.lock

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)