Skip to content

Commit

Permalink
chore: add tag to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Sep 26, 2024
1 parent c05ac39 commit 01096a2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 19 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Download Linux server archives
- name: Download server archives
uses: actions/download-artifact@v4
with:
pattern: albyhub-Server-*
pattern: AlbyHub-Server-*
path: artifacts
merge-multiple: true

- name: Download desktop archives
uses: actions/download-artifact@v4
with:
pattern: albyhub-Desktop-*
pattern: AlbyHub-Desktop-*
path: artifacts
merge-multiple: true

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ jobs:
steps:
- name: Setup
run: |
SANITIZED_TAG="${{ github.ref_name//./- }}"
echo "EXEC_NAME=albyhub" >> $GITHUB_ENV
if [ "${{ runner.os }}" == "macOS" ]; then
echo "PACKAGE_NAME=albyhub-Server-MacOS" >> $GITHUB_ENV
echo "PACKAGE_NAME=AlbyHub-Server-MacOS-${SANITIZED_TAG}" >> $GITHUB_ENV
else
echo "PACKAGE_NAME=albyhub-Server-Linux-${{ matrix.build.arch }}" >> $GITHUB_ENV
echo "PACKAGE_NAME=AlbyHub-Server-Linux-${{ matrix.build.arch }}-${SANITIZED_TAG}" >> $GITHUB_ENV
fi
- uses: actions/checkout@v4
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/wails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
- name: Setup
shell: bash
run: |
echo "EXEC_NAME=albyhub" >> $GITHUB_ENV
echo "PACKAGE_NAME=albyhub-Desktop-${{ runner.os }}" >> $GITHUB_ENV
SANITIZED_TAG="${{ github.ref_name//./- }}"
echo "EXEC_NAME=AlbyHub" >> $GITHUB_ENV
echo "PACKAGE_NAME=AlbyHub-Desktop-${{ runner.os }}-${SANITIZED_TAG}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -203,8 +204,22 @@ jobs:
rm -Rf ./build/bin/*
mv ./build/out/${{ env.PACKAGE_NAME }}.dmg ./build/bin/
- name: Generate gon-notarize.json
if: runner.os == 'macOS'
run: |
cat > ./build/darwin/gon-notarize.json << EOF
{
"notarize": [
{
"path": "./build/bin/${PACKAGE_NAME}.dmg",
"bundle_id": "com.getalby.AlbyHub"
}
]
}
EOF
- name: Notarize the DMG image
if: runner.os == 'macOS' && inputs.build-release
if: runner.os == 'macOS' # TODO: && inputs.build-release
run: |
echo "Notarizing Zip Files"
gon -log-level=info -log-json ./build/darwin/gon-notarize.json
Expand Down
8 changes: 0 additions & 8 deletions build/darwin/gon-notarize.json

This file was deleted.

6 changes: 3 additions & 3 deletions wails.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "Alby Hub",
"outputfilename": "albyhub",
"name": "AlbyHub",
"outputfilename": "AlbyHub",
"frontend:install": "yarn install",
"frontend:build": "yarn build:wails",
"frontend:dev:watcher": "yarn dev:wails",
Expand All @@ -11,7 +11,7 @@
"email": "[email protected]"
},
"info": {
"companyName": "Alby",
"companyName": "Alby Inc.",
"productName": "Alby Hub"
}
}

0 comments on commit 01096a2

Please sign in to comment.