-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from Chia-Network/develop
Release 1.0.29
- Loading branch information
Showing
3 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ permissions: | |
|
||
jobs: | ||
build: | ||
name: Build - ${{ matrix.config.name }} ${{ matrix.os.emoji }} ${{ matrix.os.name }} ${{ matrix.arch.name }} | ||
name: 👷 ${{ matrix.config.name }} ${{ matrix.os.emoji }} ${{ matrix.preconfiguration.name }} ${{ matrix.os.name }} ${{ matrix.arch.name }} | ||
runs-on: ${{ matrix.os.runs-on[matrix.arch.matrix] }} | ||
strategy: | ||
fail-fast: false | ||
|
@@ -81,11 +81,28 @@ jobs: | |
artifact-name: x64 | ||
deb-platform: amd64 | ||
electron-builder-options: --x64 | ||
preconfiguration: | ||
- name: default | ||
cadt-api-server-host: 'https://observer.climateactiondata.org/api' | ||
- name: testneta | ||
cadt-api-server-host: 'https://chia-cadt-demo.chiamanaged.com/observer' | ||
exclude: | ||
- os: | ||
matrix: windows | ||
arch: | ||
matrix: arm | ||
- config: | ||
app-mode: registry | ||
preconfiguration: | ||
name: testneta | ||
- config: | ||
app-mode: explorer | ||
preconfiguration: | ||
name: testneta | ||
- config: | ||
app-mode: dev | ||
preconfiguration: | ||
name: testneta | ||
|
||
steps: | ||
- name: Checkout Code | ||
|
@@ -104,6 +121,13 @@ jobs: | |
echo 'CHIA_ROOT="~/.chia/mainnet"' >> .env | ||
echo 'CONFIG_PATH="climate_token/config/config.yaml"' >> .env | ||
- name: Apply preconfigurations | ||
if: matrix.preconfiguration.name != 'default' | ||
run: | | ||
perl -pi -e 's{CADT_API_SERVER_HOST:\ str\ =.*}{CADT_API_SERVER_HOST:\ str\ =\ \"${{ matrix.preconfiguration.cadt-api-server-host }}\"}g' app/config.py | ||
perl -pi -e 's{CADT_API_SERVER_HOST:.*}{CADT_API_SERVER_HOST:\ \"${{ matrix.preconfiguration.cadt-api-server-host }}\"}g' config.yaml | ||
cat config.yaml | ||
- name: Create virtual environment | ||
uses: Chia-Network/actions/create-venv@main | ||
id: create-venv | ||
|
@@ -184,41 +208,58 @@ jobs: | |
name: ${{ matrix.config.app-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}-1_${{ matrix.arch.deb-platform }}.deb | ||
path: ${{ github.workspace }}/deb/*.deb | ||
if-no-files-found: error | ||
if: matrix.os.matrix == 'linux' | ||
if: matrix.os.matrix == 'linux' && matrix.preconfiguration.name == 'default' | ||
|
||
- name: Upload preconfigured deb | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.config.app-name }}-${{ matrix.preconfiguration.name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}-1_${{ matrix.arch.deb-platform }}.deb | ||
path: ${{ github.workspace }}/deb/*.deb | ||
if-no-files-found: error | ||
if: matrix.os.matrix == 'linux' && matrix.preconfiguration.name != 'default' | ||
|
||
- name: Upload binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.config.app-name }}-${{ matrix.os.artifact-os-name }}-${{ matrix.arch.artifact-name }} | ||
path: ${{ github.workspace }}/artifacts/* | ||
if-no-files-found: error | ||
if: matrix.preconfiguration.name == 'default' | ||
|
||
- name: Upload preconfigured binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.config.app-name }}-${{ matrix.preconfiguration.name }}-${{ matrix.os.artifact-os-name }}-${{ matrix.arch.artifact-name }} | ||
path: ${{ github.workspace }}/artifacts/* | ||
if-no-files-found: error | ||
if: matrix.preconfiguration.name != 'default' | ||
|
||
- name: Create zip files for release | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: ${{ matrix.config.app-name }}_${{ matrix.os.artifact-os-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}_${{ matrix.arch.artifact-name }}.zip | ||
directory: 'artifacts' | ||
if: startsWith(github.ref, 'refs/tags/') | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.preconfiguration.name == 'default' | ||
|
||
- name: Release executable | ||
uses: softprops/[email protected] | ||
with: | ||
files: ./artifacts/${{ matrix.config.app-name }}_${{ matrix.os.artifact-os-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}_${{ matrix.arch.artifact-name }}.zip | ||
if: startsWith(github.ref, 'refs/tags/') | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.preconfiguration.name == 'default' | ||
|
||
- name: Release debs | ||
uses: softprops/[email protected] | ||
with: | ||
files: | | ||
${{ github.workspace }}/deb/${{ matrix.config.app-name }}_${{ steps.tag-name.outputs.TAGNAME || github.sha }}-1_${{ matrix.arch.deb-platform }}.deb | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' && matrix.preconfiguration.name == 'default' | ||
|
||
# Only do for Intel builds as we know we build ARM and can pass that info along to the apt update automation | ||
- name: Create artifact with metadata for apt upload | ||
run: | | ||
echo "${{ matrix.config.app-name }}" > APTDATA_${{ matrix.config.app-name }}.dat | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' && matrix.config.add-to-apt == 'true' && matrix.arch.name == 'Intel' | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' && matrix.config.add-to-apt == 'true' && matrix.arch.name == 'Intel' && matrix.preconfiguration.name == 'default' | ||
|
||
- name: Upload artifact to pass apt data to release job | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -227,7 +268,7 @@ jobs: | |
path: APTDATA_${{ matrix.config.app-name }}.dat | ||
if-no-files-found: error | ||
retention-days: 1 | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' && matrix.config.add-to-apt == 'true' && matrix.arch.name == 'Intel' | ||
if: startsWith(github.ref, 'refs/tags/') && matrix.os.matrix == 'linux' && matrix.config.add-to-apt == 'true' && matrix.arch.name == 'Intel' && matrix.preconfiguration.name == 'default' | ||
|
||
|
||
apt-upload: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "Chia Climate Token Driver" | ||
version = "1.0.28" | ||
version = "1.0.29" | ||
description = "https://github.com/Chia-Network/climate-token-driver" | ||
authors = ["Harry Hsu <[email protected]>", | ||
"Chia Network Inc <[email protected]>"] | ||
|