Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: use github ref for version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Jun 21, 2024
1 parent 7663167 commit e078946
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
env:
REGISTRY: ghcr.io
IMAGENAME: ${{ github.event.repository.name }}
TAG: ${{ github.ref_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -30,4 +31,4 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
addLatest: ${{ github.ref == 'refs/heads/master' }}
buildArgs: TAG=0.5
buildArgs: TAG=${{ env.TAG }}
3 changes: 2 additions & 1 deletion .github/workflows/package-raspberry-pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
GOARM: 6
CGO_ENABLED: 1
CC: ${{ github.workspace }}/armv6-unknown-linux-gnueabihf/bin/armv6-unknown-linux-gnueabihf-gcc
run: go build -tags skip_breez,netgo -v -o nostr-wallet-connect cmd/http/main.go
TAG: ${{ github.ref_name }}
run: go build -tags skip_breez,netgo -v -o nostr-wallet-connect cmd/http/main.go -ldflags "-X 'github.com/getAlby/nostr-wallet-connect/version.Tag=${{ env.TAG }}'"

- name: Find and copy shared libraries
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/wails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
{ name: albyhub, platform: darwin/universal, os: macos-12 },
]
runs-on: ${{ matrix.build.os }}
env:
TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -100,17 +102,17 @@ jobs:

- name: Build App
if: runner.os == 'macOS'
run: wails build --platform darwin/universal -webview2 embed -o ${{ matrix.build.name }} -tags "wails"
run: wails build --platform darwin/universal -webview2 embed -o ${{ matrix.build.name }} -tags "wails" -ldflags "-X 'github.com/getAlby/nostr-wallet-connect/version.Tag=${{ env.TAG }}'"
shell: bash

- name: Build App
if: runner.os == 'Linux'
run: wails build --platform linux/amd64 -webview2 embed -o ${{ matrix.build.name }} -tags "wails"
run: wails build --platform linux/amd64 -webview2 embed -o ${{ matrix.build.name }} -tags "wails" -ldflags "-X 'github.com/getAlby/nostr-wallet-connect/version.Tag=${{ env.TAG }}'"
shell: bash

- name: Build Windows App
if: runner.os == 'Windows'
run: wails build --platform windows/amd64 -webview2 embed -o ${{ matrix.build.name }}.exe -tags "wails"
run: wails build --platform windows/amd64 -webview2 embed -o ${{ matrix.build.name }}.exe -tags "wails" -ldflags "-X 'github.com/getAlby/nostr-wallet-connect/version.Tag=${{ env.TAG }}'"
shell: bash

- name: Import Code-Signing Certificates for macOS
Expand Down

0 comments on commit e078946

Please sign in to comment.