Skip to content

Commit

Permalink
Merge branch 'main' into feat/submit-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakaw authored Sep 19, 2024
2 parents 2266919 + dbd8706 commit 919fcdd
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ name: Release
# - 'v[0-9]+.[0-9]+.[0-9]+'
branches:
- 'release'
- 'beta'
- 'build-*'
schedule:
- cron: "05 00 * * *"
workflow_dispatch:

concurrency:
Expand All @@ -19,7 +22,6 @@ concurrency:

permissions: {}


env:
TARI_NETWORK: nextnet
TARI_TARGET_NETWORK: nextnet
Expand Down Expand Up @@ -53,6 +55,27 @@ jobs:
echo "releaseName=Tari Universe v__VERSION__" >> $GITHUB_ENV
#echo "releaseId=" >> $GITHUB_ENV
- name: beta builds - Install dependencies (windows)
if: startsWith(runner.os,'Windows')
run: |
choco upgrade yq -y
- name: Set environment variables for beta builds
if: ${{ ( github.event_name == 'schedule' ) || ( ! startsWith(github.ref, 'refs/heads/release') ) }}
env:
BETA_STRING: "-beta"
shell: bash
run: |
#set -xueo pipefail
export BETA_DATE=$(date +%Y-%m-%d)
cd "${GITHUB_WORKSPACE}/src-tauri"
echo "releaseName=Tari Universe${{ env.BETA_STRING }} v__VERSION__-${BETA_DATE}" >> $GITHUB_ENV
# Don't mess with the double quotes and inner escaped quotes
yq eval ".package.productName += \"${{ env.BETA_STRING }}\"" -i tauri.conf.json
yq eval ".package.version += \"-${BETA_DATE}\"" -i tauri.conf.json
sed -i.bak -E "s/^version\s*=\s*\"([0-9]+\.[0-9]+\.[0-9]+)\"/version = \"\1-${BETA_DATE}\"/" \
Cargo.toml
- name: Node.js setup
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -123,7 +146,7 @@ jobs:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
WINDOWS_SIGN_COMMAND: trusted-signing-cli -e https://eus.codesigning.azure.net/ -a Tari -c Tarilabs %1
run: |
cd "$GITHUB_WORKSPACE/src-tauri"
cd "${GITHUB_WORKSPACE}/src-tauri"
echo "{}" | \
jq '.tauri .bundle .windows += {"signCommand": "${{ env.WINDOWS_SIGN_COMMAND }}"}' > \
./tauri.windows.conf.json
Expand Down Expand Up @@ -156,15 +179,15 @@ jobs:
tagName: ${{ env.tagName }}
releaseName: ${{ env.releaseName }}
releaseBody: 'Tari Universe - See the assets to download this version and install'
#releaseId: ${{ env.releaseId }}
# releaseId: ${{ env.releaseId }}
releaseDraft: true
prerelease: true
includeDebug: false
includeRelease: true
args: ${{ matrix.args }}

- name: Upload
if: ${{ startsWith(github.ref, 'refs/heads/build-') }}
- name: Upload none releases
if: ${{ ( github.event_name == 'schedule' ) || ( ! startsWith(github.ref, 'refs/heads/release') ) }}
uses: actions/upload-artifact@v4
with:
name: tari-universe_${{ steps.build.outputs.appVersion }}_${{ matrix.platform }}
Expand Down

0 comments on commit 919fcdd

Please sign in to comment.