From 0714ce9b053db96408edcfb2a87f83cdea1ace62 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:15:41 +0900 Subject: [PATCH 01/13] Create release.yml --- .github/workflows/release.yml | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..7c11ecb78408 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,57 @@ +name: Release + +on: + push: + branches: [ "feat/ga_release" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.19' + + - name: Build Go-WEMIX tarball + run: make gwemix.tar.gz + + - name: Stat Go-WEMIX tarball + run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz + + - name: GH Release + uses: softprops/action-gh-release@v2.0.5 + with: + # Note-worthy description of changes in release + #body: # optional + # Path to load note-worthy description of changes in release from + #body_path: # optional + # Gives the release a custom name. Defaults to tag name + #name: # optional + # Gives a tag name. Defaults to github.GITHUB_REF + #tag_name: # optional + # Creates a draft release. Defaults to false + #draft: # optional + # Identify the release as a prerelease. Defaults to false + prerelease: true + # Newline-delimited list of path globs for asset files to upload + #files: # optional + # Fails if any of the `files` globs match nothing. Defaults to false + #fail_on_unmatched_files: # optional + # Repository to make releases against, in / format + #repository: # optional + # Authorized secret GitHub Personal Access Token. Defaults to github.token + #token: # optional, default is ${{ github.token }} + # Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. + #target_commitish: # optional + # If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. If there is already a discussion linked to the release, this parameter is ignored. + #discussion_category_name: # optional + # Whether to automatically generate the name and body for this release. If name is specified, the specified name will be used; otherwise, a name will be automatically generated. If body is specified, the body will be pre-pended to the automatically generated notes. + #generate_release_notes: # optional + # Append to existing body instead of overwriting it. Default is false. + #append_body: # optional + # Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Can be `true`, `false`, or `legacy`. Uses GitHub api default if not provided + #make_latest: # optional From e86060a1cc99228c826f4768c037de7dd8123c05 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:24:25 +0900 Subject: [PATCH 02/13] Update release.yml --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c11ecb78408..8394fc8e2bd4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,8 +16,8 @@ jobs: with: go-version: '1.19' - - name: Build Go-WEMIX tarball - run: make gwemix.tar.gz + #- name: Build Go-WEMIX tarball + # run: make gwemix.tar.gz - name: Stat Go-WEMIX tarball run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz @@ -38,7 +38,9 @@ jobs: # Identify the release as a prerelease. Defaults to false prerelease: true # Newline-delimited list of path globs for asset files to upload - #files: # optional + files: + README.md + Dockerfile # Fails if any of the `files` globs match nothing. Defaults to false #fail_on_unmatched_files: # optional # Repository to make releases against, in / format From 4e19535ad34d7a725638cceab51096f5452f9cf0 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:25:13 +0900 Subject: [PATCH 03/13] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8394fc8e2bd4..68d9c14c13bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,8 @@ jobs: #- name: Build Go-WEMIX tarball # run: make gwemix.tar.gz - - name: Stat Go-WEMIX tarball - run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz + #- name: Stat Go-WEMIX tarball + # run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz - name: GH Release uses: softprops/action-gh-release@v2.0.5 From 3a9acf6c693bc355026d373d3ea148d6c278780a Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:33:19 +0900 Subject: [PATCH 04/13] Update release.yml --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68d9c14c13bb..a2480774c23f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: # Gives the release a custom name. Defaults to tag name #name: # optional # Gives a tag name. Defaults to github.GITHUB_REF - #tag_name: # optional + tag_name: TestName # Creates a draft release. Defaults to false #draft: # optional # Identify the release as a prerelease. Defaults to false @@ -57,3 +57,10 @@ jobs: #append_body: # optional # Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Can be `true`, `false`, or `legacy`. Uses GitHub api default if not provided #make_latest: # optional + + - name: Upload Go test results + uses: actions/upload-artifact@v4 + with: + name: Go-results-${{ matrix.go-version }} + path: Readme.md + retention-days: 1 From dd9f32f05d74b6533bc8ce927f00ab8ad7f83d54 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:34:17 +0900 Subject: [PATCH 05/13] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2480774c23f..45ec0e6ad8d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,5 +62,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: Go-results-${{ matrix.go-version }} - path: Readme.md + path: README.md retention-days: 1 From ec9dde0d1447aa59fd59bb4845da7a5f67e155c9 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 16:38:25 +0900 Subject: [PATCH 06/13] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 45ec0e6ad8d9..aa4954ae7d80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: # Identify the release as a prerelease. Defaults to false prerelease: true # Newline-delimited list of path globs for asset files to upload - files: + files: | README.md Dockerfile # Fails if any of the `files` globs match nothing. Defaults to false From 4f0e3feedc2caaf5ebc5fe1bb0d6fe999ff50fa9 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 17:20:14 +0900 Subject: [PATCH 07/13] Update release.yml --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa4954ae7d80..e551347ef1c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,9 @@ -name: Release +name: "Release a tag" on: push: - branches: [ "feat/ga_release" ] + tags: + - v* jobs: From 7d13e2f3c0f200d03edaaf9bd3f02efcf9e20a91 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 17:21:21 +0900 Subject: [PATCH 08/13] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e551347ef1c7..2849f9ac02d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: # Gives the release a custom name. Defaults to tag name #name: # optional # Gives a tag name. Defaults to github.GITHUB_REF - tag_name: TestName + #tag_name: # optional # Creates a draft release. Defaults to false #draft: # optional # Identify the release as a prerelease. Defaults to false From 90baff4e9ab42c94d5f26d853179cb8e782bdb36 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 17:43:30 +0900 Subject: [PATCH 09/13] Update release.yml --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2849f9ac02d7..168a82db9a9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ -name: "Release a tag" +name: "Release a tag as draft" on: push: tags: - - v* + - w* jobs: @@ -35,9 +35,9 @@ jobs: # Gives a tag name. Defaults to github.GITHUB_REF #tag_name: # optional # Creates a draft release. Defaults to false - #draft: # optional + draft: true # Identify the release as a prerelease. Defaults to false - prerelease: true + #prerelease: # optional # Newline-delimited list of path globs for asset files to upload files: | README.md @@ -62,6 +62,6 @@ jobs: - name: Upload Go test results uses: actions/upload-artifact@v4 with: - name: Go-results-${{ matrix.go-version }} + name: artifact-${{ github.sha }} path: README.md retention-days: 1 From e488ab08b49b521156fd4c0ecc473c1d368550a5 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 17:50:59 +0900 Subject: [PATCH 10/13] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 168a82db9a9e..dcefee9583c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: # Path to load note-worthy description of changes in release from #body_path: # optional # Gives the release a custom name. Defaults to tag name - #name: # optional + name: WEMIX3.0 Mainnet and Testnet Build ${{ github.ref }} # Gives a tag name. Defaults to github.GITHUB_REF #tag_name: # optional # Creates a draft release. Defaults to false From 088d59a26e382f9ac858d4621e10d10d007faa19 Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 17:52:50 +0900 Subject: [PATCH 11/13] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcefee9583c5..db6ec6c4c0c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: # Path to load note-worthy description of changes in release from #body_path: # optional # Gives the release a custom name. Defaults to tag name - name: WEMIX3.0 Mainnet and Testnet Build ${{ github.ref }} + name: WEMIX3.0 Mainnet and Testnet Build (${{ github.ref_name }}) # Gives a tag name. Defaults to github.GITHUB_REF #tag_name: # optional # Creates a draft release. Defaults to false From 0fdffd04cb47e090ede1d0d8bfeccaa26477051d Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 18:02:01 +0900 Subject: [PATCH 12/13] Update release.yml --- .github/workflows/release.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db6ec6c4c0c4..1ad70af8b785 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,14 @@ jobs: with: go-version: '1.19' - #- name: Build Go-WEMIX tarball - # run: make gwemix.tar.gz + - name: Build Go-WEMIX tarball + run: USE_ROCKSDB=YES make gwemix.tar.gz - #- name: Stat Go-WEMIX tarball - # run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz + - name: Stat Go-WEMIX tarball + run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz + + - name: Rename tarball + run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-linux-rocksdb.tar.gz - name: GH Release uses: softprops/action-gh-release@v2.0.5 @@ -31,7 +34,7 @@ jobs: # Path to load note-worthy description of changes in release from #body_path: # optional # Gives the release a custom name. Defaults to tag name - name: WEMIX3.0 Mainnet and Testnet Build (${{ github.ref_name }}) + name: WEMIX3.0 Mainnet and Testnet Build (${{ github.sha }}) # Gives a tag name. Defaults to github.GITHUB_REF #tag_name: # optional # Creates a draft release. Defaults to false @@ -40,8 +43,7 @@ jobs: #prerelease: # optional # Newline-delimited list of path globs for asset files to upload files: | - README.md - Dockerfile + gwemix-${{ github.ref_name }}-linux-rocksdb.tar.gz # Fails if any of the `files` globs match nothing. Defaults to false #fail_on_unmatched_files: # optional # Repository to make releases against, in / format @@ -63,5 +65,5 @@ jobs: uses: actions/upload-artifact@v4 with: name: artifact-${{ github.sha }} - path: README.md + path: gwemix-${{ github.ref_name }}-linux-rocksdb.tar.gz retention-days: 1 From c5680ba280fdc12d8acde47bd4ab8214acbd988f Mon Sep 17 00:00:00 2001 From: jed-wemade <127728629+jed-wemade@users.noreply.github.com> Date: Fri, 31 May 2024 18:12:38 +0900 Subject: [PATCH 13/13] Update release.yml --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ad70af8b785..13a6fdf7e847 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,10 +21,13 @@ jobs: run: USE_ROCKSDB=YES make gwemix.tar.gz - name: Stat Go-WEMIX tarball - run: ls -l build/gwemix.tar.gz && tar tf build/gwemix.tar.gz + run: | + ls -l build/gwemix.tar.gz + tar tf build/gwemix.tar.gz - - name: Rename tarball - run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-linux-rocksdb.tar.gz + - name: Move results to artifact + run: | + mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-linux-rocksdb.tar.gz - name: GH Release uses: softprops/action-gh-release@v2.0.5