Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 10.0.39 #112

Merged
merged 44 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fb3732a
build(deps-dev): bump axios from 1.6.4 to 1.7.7
dependabot[bot] Nov 4, 2024
571ee27
build(deps): bump cross-spawn from 7.0.3 to 7.0.6
dependabot[bot] Nov 20, 2024
31dfe38
ci: update to v4 of many actions
TheLastCicada Dec 12, 2024
77d0561
Merge pull request #110 from Chia-Network/v4
TheLastCicada Dec 12, 2024
31fd186
Merge pull request #109 from Chia-Network/dependabot/npm_and_yarn/cro…
TheLastCicada Dec 18, 2024
6e72260
Merge pull request #104 from Chia-Network/dependabot/npm_and_yarn/axi…
TheLastCicada Dec 18, 2024
1a57bc0
ci: dependency updates and RC workflow
TheLastCicada Dec 18, 2024
20c318f
chore: version bump
TheLastCicada Dec 18, 2024
8bd1503
Merge pull request #111 from Chia-Network/rc
TheLastCicada Dec 18, 2024
9ceed2e
chore: Update dep-review
ChiaAutomation Dec 19, 2024
b6081a0
chore: Update commit-signing
ChiaAutomation Dec 19, 2024
4e9862a
chore: Update dependabot
ChiaAutomation Dec 19, 2024
eb92f2b
Merge pull request #113 from Chia-Network/managed-files
TheLastCicada Dec 19, 2024
cdd325d
build(deps): bump actions/checkout from 3 to 4
dependabot[bot] Dec 19, 2024
f1e0dec
build(deps): bump actions/setup-node from 3 to 4
dependabot[bot] Dec 19, 2024
1195f0c
build(deps): bump Apple-Actions/import-codesign-certs from 1 to 3
dependabot[bot] Dec 19, 2024
c4315e9
ci: rc versions into apt repo
TheLastCicada Jan 7, 2025
ee85ef2
Merge pull request #126 from Chia-Network/rc-apt-workflow
TheLastCicada Jan 7, 2025
0c52690
Merge pull request #114 from Chia-Network/dependabot/github_actions/a…
TheLastCicada Jan 7, 2025
2fbb702
Merge pull request #115 from Chia-Network/dependabot/github_actions/a…
TheLastCicada Jan 7, 2025
fd80bbf
Merge pull request #116 from Chia-Network/dependabot/github_actions/A…
TheLastCicada Jan 7, 2025
ccab7ff
build: create build with rc versions
TheLastCicada Jan 8, 2025
8cf126f
Merge pull request #127 from Chia-Network/rc-testing-release
TheLastCicada Jan 8, 2025
f14face
ci: package cadt rc10
TheLastCicada Jan 8, 2025
bd8615b
Merge pull request #128 from Chia-Network/rc-testing-releaserc10
TheLastCicada Jan 8, 2025
21afad4
build: update rc build of explorer and token driver
TheLastCicada Jan 13, 2025
df615ab
Merge pull request #129 from Chia-Network/rc9-explorer
TheLastCicada Jan 13, 2025
a481ad2
chore: Update license
ChiaAutomation Jan 14, 2025
cb6156b
feat: add apple ARM package target
wwills2 Jan 14, 2025
c287fc7
Merge remote-tracking branch 'origin/develop' into develop
wwills2 Jan 14, 2025
becc331
Merge pull request #130 from Chia-Network/update-license
TheLastCicada Jan 14, 2025
58799bb
Merge remote-tracking branch 'origin/develop' into develop
wwills2 Jan 14, 2025
f811e3a
build: update apps
TheLastCicada Jan 15, 2025
2243c3d
Merge pull request #132 from Chia-Network/appupdates011525
TheLastCicada Jan 15, 2025
782efeb
chore: dep updates
wwills2 Jan 27, 2025
c2e6203
ci: switch to jinjanator from j2cli; use GH hosted ARM runners
TheLastCicada Jan 28, 2025
a82f4fd
build: ignore venvs
TheLastCicada Jan 28, 2025
c14cf91
Merge pull request #134 from Chia-Network/dep-updates
wwills2 Jan 28, 2025
0f4757e
Merge pull request #135 from Chia-Network/jinjanator
TheLastCicada Jan 29, 2025
a2fc84d
build: bump app versions and chia tested version
TheLastCicada Feb 6, 2025
3a30cf9
Merge pull request #137 from Chia-Network/app-updates02022025
TheLastCicada Feb 6, 2025
c34b347
build: release with app version bump for core-registry-cadt
TheLastCicada Feb 6, 2025
c477f99
build: climate tokenization engine version set to stable
TheLastCicada Feb 6, 2025
de23c64
Merge pull request #138 from Chia-Network/release10039
TheLastCicada Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This file is managed by the repo-content-updater project. Manual changes here will result in a PR to bring back
# inline with the upstream template, unless you remove the dependabot managed file property from the repo

version: 2
updates:
- package-ecosystem: "gomod"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- go
- "Changed"
reviewers: ["cmmarslender", "starttoaster"]
groups:
global:
patterns:
- "*"

- package-ecosystem: "pip"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- python
- "Changed"
reviewers: ["emlowe", "altendky"]

- package-ecosystem: "github-actions"
directories: ["/", ".github/actions/*"]
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- github_actions
- "Changed"
reviewers: ["cmmarslender", "Starttoaster", "pmaslana"]

- package-ecosystem: "npm"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- javascript
- "Changed"
reviewers: ["cmmarslender", "ChiaMineJP"]

- package-ecosystem: cargo
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- rust
- "Changed"
79 changes: 79 additions & 0 deletions .github/workflows/auto-release-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Compares the version in package.json to tags on the repo. If the tag doesn't exist, a new tag is created, which
# then triggers the normal "on tag" release automation in the build job
name: Auto Tag RC

on:
push:
branches:
- develop

concurrency:
group: rc-release-check

jobs:
release-dev:
name: Release rc version
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
with:
# Need REPO_COMMIT token so when the tag is created, the tag automation runs
token: ${{ secrets.REPO_COMMIT }}
fetch-depth: 0

- name: Setup commit signing for ChiaAutomation
uses: Chia-Network/actions/commit-sign/gpg@main
with:
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }}
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}

- name: Check for current version tag. Create if it doesn't exist
env:
GH_TOKEN: ${{ github.token }}
run: |
stable_version=$(gh release list --limit 1 --order desc --exclude-pre-releases --json tagName --jq ".[].tagName")
echo "Latest release is $stable_version"
rc_version=$(gh release list --json tagName --jq ".[] | select(.tagName | test(\"${version}-rc*\")) | .tagName")
echo "Latest release candidate is $rc_version"
if [[ -z ${rc_version} ]]; then
# Extract the major, minor, and patch versions
IFS='.' read -r major minor patch <<< "$stable_version"
# Increment the patch version
new_patch=$((patch + 1))
# Construct the new version string
version="$major.$minor.$new_patch-rc1"
echo "New version: $version"
else
# Extract the major, minor, patch, and rc parts
IFS='.-' read -r major minor patch rc <<< "$rc_version"
# Extract just the number of the rc
rc_number="${rc#rc}"
# Increment the rc number
rc_number=$((rc_number +1))
# Construct the new version string
version="$major.$minor.$patch-rc$rc_number"
echo "New version: $version"
fi
if [ $(git tag -l "$version") ]; then
echo "$version tag exists, deleting..."
git tag -d $version
git push --delete origin $version
fi
echo "Tag does not exist. Creating and pushing tag"
rm -f CHANGELOG.md
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s -r 0
changes=$(npx conventional-changelog-cli -r 1 | tail -n +2)
git tag $version -m "Release $version $changes"
git push origin $version
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout current branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Need PACKAGE_ADMIN_PAT token so when the tag is created, the tag automation runs
token: ${{ secrets.PACKAGE_ADMIN_PAT }}
Expand Down
88 changes: 62 additions & 26 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build-command: npm run create-linux-x64-dist
os: linux
arch: x64
- runs-on: [Linux, ARM64]
- runs-on: [ubuntu-22.04-arm]
artifact-name: core-registry-api-linux-arm64
build-command: npm run create-linux-arm64-dist
os: linux
Expand All @@ -48,14 +48,11 @@ jobs:
arch: x64

steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node 20.16
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20.16'

Expand Down Expand Up @@ -139,6 +136,17 @@ jobs:
- name: install global packages
run: npm i -g pkg

- name: Change the package.json version if an RC tag
shell: bash
if: startsWith(github.ref, 'refs/tags/') && contains( github.ref, '-rc')
run: |
echo "Github ref: $GITHUB_REF"
IFS='/' read -r base directory tag <<< "$GITHUB_REF"
echo "Extracted tag is $tag"

jq ".version = \"${tag}\"" package.json > package.tmp
mv package.tmp package.json

- name: npm install
run: |
node --version
Expand Down Expand Up @@ -179,16 +187,16 @@ jobs:

# Mac .pkg build + sign
- name: Import Apple installer signing certificate
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
uses: Apple-Actions/import-codesign-certs@v1
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
uses: Apple-Actions/import-codesign-certs@v3
with:
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
p12-file-base64: ${{ secrets.APPLE_DEV_ID_INSTALLER }}
p12-password: ${{ secrets.APPLE_DEV_ID_INSTALLER_PASS }}

- name: Import Apple Application signing certificate
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
uses: Apple-Actions/import-codesign-certs@v1
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
uses: Apple-Actions/import-codesign-certs@v3
with:
create-keychain: false # Created when importing the first cert
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
Expand All @@ -202,7 +210,7 @@ jobs:
cp -r ${{ github.workspace }}/dist ${{ github.workspace }}/build-scripts/macos/application

- name: Sign Mac binaries
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
run: |
echo "Signing the binaries"
codesign -f -s "Developer ID Application: Chia Network Inc." --timestamp --options=runtime --entitlements ${{ github.workspace }}/build-scripts/macos/entitlements.mac.plist ${{ github.workspace }}/build-scripts/macos/application/$APP_NAME
Expand All @@ -219,7 +227,7 @@ jobs:
cp ${{ github.workspace }}/build-scripts/macos/target/pkg/${APP_NAME}-macos-installer-x64.pkg ${{ github.workspace }}/build-scripts/macos/target/ready-to-upload/${APP_NAME}-macos-installer-x64.pkg

- name: Notarize Mac .pkg
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
run: |
mkdir -p ${{ github.workspace }}/build-scripts/macos/target/pkg-signed

Expand All @@ -239,13 +247,13 @@ jobs:

- name: Upload Mac Installer
if: matrix.runs-on == 'macos-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}-mac-installer
path: ${{ github.workspace }}/build-scripts/macos/target/ready-to-upload

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: ${{ github.workspace }}/dist
Expand All @@ -268,7 +276,7 @@ jobs:
uses: actions/checkout@v4

- name: Download Linux artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
Expand All @@ -286,13 +294,13 @@ jobs:
HOMEPAGE: "https://github.com/Chia-Network/core-registry-api/"
run: |
set -x
pip install j2cli
pip install jinjanator
CLI_DEB_BASE="${APP_NAME}_${{ steps.tag-name.outputs.TAGNAME }}-1_${PLATFORM}"
mkdir -p "deb/$CLI_DEB_BASE/opt/${APP_NAME}"
mkdir -p "deb/$CLI_DEB_BASE/usr/bin"
mkdir -p "deb/$CLI_DEB_BASE/etc/systemd/system"
mkdir -p "deb/$CLI_DEB_BASE/DEBIAN"
j2 -o "deb/$CLI_DEB_BASE/DEBIAN/control" build-scripts/deb/control.j2
jinjanate -o "deb/$CLI_DEB_BASE/DEBIAN/control" build-scripts/deb/control.j2
cp -r ${{ matrix.name }}/* "deb/$CLI_DEB_BASE/opt/${APP_NAME}/"
cp build-scripts/deb/systemd@.service deb/$CLI_DEB_BASE/etc/systemd/system/${APP_NAME}@.service
chmod +x deb/$CLI_DEB_BASE/opt/${APP_NAME}/${APP_NAME}
Expand All @@ -302,7 +310,7 @@ jobs:
dpkg-deb --build --root-owner-group "deb/$CLI_DEB_BASE"

- name: Upload deb
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}-deb
path: ${{ github.workspace }}/deb/*.deb
Expand All @@ -315,43 +323,43 @@ jobs:
- build
steps:
- name: Download Windows artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}-windows-x64
path: ${{ env.APP_NAME }}-windows-x64

# - name: Download MacOS installer artifacts
# uses: actions/download-artifact@v3
# uses: actions/download-artifact@v4
# with:
# name: ${{ env.APP_NAME }}-mac-installer
# path: ${{ env.APP_NAME }}-mac-installer

# - name: Download MacOS executable artifacts
# uses: actions/download-artifact@v3
# uses: actions/download-artifact@v4
# with:
# name: ${{ env.APP_NAME }}-macos-x64
# path: ${{ env.APP_NAME }}-macos-x64

- name: Download Linux x64 artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}-linux-x64
path: ${{ env.APP_NAME }}-linux-x64

- name: Download Linux ARM 64 artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}-linux-arm64
path: ${{ env.APP_NAME }}-linux-arm64

- name: Download Linux x64 deb
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}-linux-x64-deb
path: ${{ env.APP_NAME }}-linux-x64-deb

- name: Download Linux arm64 deb
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.APP_NAME }}-linux-arm64-deb
path: ${{ env.APP_NAME }}-linux-arm64-deb
Expand All @@ -369,9 +377,36 @@ jobs:
zip -r ${APP_NAME}-linux-arm64-${{ steps.tag-name.outputs.TAGNAME }}.zip ${APP_NAME}-linux-arm64
# zip -r ${APP_NAME}-macos-binary-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip ${APP_NAME}-macos-x64

# RC release should not be set as latest
- name: Decide if release should be set as latest and set glue project
id: is_latest
shell: bash
run: |
unset IS_LATEST

echo "Github ref is $GITHUB_REF"

if [[ "$GITHUB_REF" =~ "-rc" ]]; then
echo "release candidate tag matched"
IS_LATEST='false'
IS_PRERELEASE='true'
GLUE_PROJECT='climate-tokenization-test'
else
echo "main branch release matched"
IS_LATEST='true'
IS_PRERELEASE='false'
GLUE_PROJECT='climate-tokenization'
fi

echo "IS_LATEST=${IS_LATEST}" >> "$GITHUB_OUTPUT"
echo "IS_PRERELEASE=${IS_PRERELEASE}" >> "$GITHUB_OUTPUT"
echo "GLUE_PROJECT=${GLUE_PROJECT}" >> "$GITHUB_OUTPUT"

- name: Release
uses: softprops/action-gh-release@v0.1.15
uses: softprops/action-gh-release@v2
with:
prerelease: ${{steps.is_latest.outputs.IS_PRERELEASE}}
make_latest: "${{steps.is_latest.outputs.IS_LATEST}}"
files: |
${{ env.APP_NAME }}-windows-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip
# ${{ env.APP_NAME }}-macos-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip
Expand All @@ -387,9 +422,10 @@ jobs:
echo "REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d "/" -f 2)" >>$GITHUB_OUTPUT

- name: Trigger apt repo update
if: startsWith(github.ref, 'refs/tags/')
uses: Chia-Network/actions/github/glue@main
with:
json_data: '{"climate_tokenization_repo":"${{ steps.repo-name.outputs.REPO_NAME }}","application_name":"[\"${{ env.APP_NAME }}\"]","release_version":"${{ steps.tag-name.outputs.TAGNAME }}","add_debian_version":"true","arm64":"available"}'
glue_url: ${{ secrets.GLUE_API_URL }}
glue_project: "climate-tokenization"
glue_project: "${{steps.is_latest.outputs.GLUE_PROJECT}}"
glue_path: "trigger"
Loading
Loading