Skip to content

Commit e38f61a

Browse files
committed
debug release workflow
1 parent f078d78 commit e38f61a

File tree

2 files changed

+86
-81
lines changed

2 files changed

+86
-81
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020
matrix:
2121
include:
2222
# The first combination is Ubuntu running on an AMD64 processor, building for Windows.
23-
- os: ubuntu-24.04
24-
arch: amd64
25-
target: windows
26-
ext: .exe
23+
# - os: ubuntu-24.04
24+
# arch: amd64
25+
# target: windows
26+
# ext: .exe
2727

28-
# The second combination is Ubuntu running on an AMD64 processor, building for Linux.
29-
- os: ubuntu-24.04
30-
arch: amd64
31-
target: linux
28+
# # The second combination is Ubuntu running on an AMD64 processor, building for Linux.
29+
# - os: ubuntu-24.04
30+
# arch: amd64
31+
# target: linux
3232

3333
# The third combination is macOS running on an AMD64 processor, building for Darwin (macOS).
34-
- os: macos-13
35-
arch: amd64
36-
target: darwin
34+
# - os: macos-13
35+
# arch: amd64
36+
# target: darwin
3737

3838
# The fourth combination is macOS running on an ARM64 processor, building for Darwin (macOS).
3939
- os: macos-13
@@ -66,7 +66,8 @@ jobs:
6666
if: ${{ matrix.target != 'windows' }}
6767
run: |
6868
ls -la build/
69-
chmod +x build/node-manager-plugin*
69+
chmod +x build/node-manager-plugin
70+
md5 build/node-manager-plugin
7071
7172
- name: Sign Macos binary
7273
uses: massalabs/massa/.github/actions/sign-macos@ccc3f02e34544f722634a6fb7732cc4bb515e90b
@@ -78,8 +79,10 @@ jobs:
7879
signing-identity: ${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}
7980

8081
- name: Rename Plugin artifact
81-
run:
82+
run: |
8283
mv build/node-manager-plugin${{ matrix.ext }} ${{ env.TARGET_NAME }}${{ matrix.ext }}
84+
ls -la
85+
md5 ${{ env.TARGET_NAME }}${{ matrix.ext }}
8386
8487
- name: Upload artifacts
8588
uses: actions/upload-artifact@v4
@@ -88,35 +91,35 @@ jobs:
8891
path: |
8992
${{ env.TARGET_NAME }}${{ matrix.ext }}
9093
91-
sign-windows-binary:
92-
name: Sign Windows binary
93-
needs: build
94-
runs-on: windows-latest
95-
permissions:
96-
contents: write
97-
id-token: write
98-
env:
99-
TARGET_NAME: node-manager-plugin_windows-amd64
100-
steps:
101-
- name: Download Windows artifacts
102-
uses: actions/download-artifact@v4
103-
with:
104-
name: ${{ env.TARGET_NAME }}
105-
path: .
94+
# sign-windows-binary:
95+
# name: Sign Windows binary
96+
# needs: build
97+
# runs-on: windows-latest
98+
# permissions:
99+
# contents: write
100+
# id-token: write
101+
# env:
102+
# TARGET_NAME: node-manager-plugin_windows-amd64
103+
# steps:
104+
# - name: Download Windows artifacts
105+
# uses: actions/download-artifact@v4
106+
# with:
107+
# name: ${{ env.TARGET_NAME }}
108+
# path: .
106109

107-
- name: Sign Windows binary
108-
uses: massalabs/station/.github/actions/sign-file-digicert@413d4c0bbd042d5e797fbb66bcd2c96be5c3e71a
109-
with:
110-
files: ${{ env.TARGET_NAME }}.exe
111-
SM_API_KEY: ${{ secrets.SM_API_KEY }}
112-
SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
113-
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
114-
SM_CERT_FINGERPRINT: ${{ secrets.SM_CERT_FINGERPRINT }}
115-
SM_HOST: ${{ secrets.SM_HOST }}
110+
# - name: Sign Windows binary
111+
# uses: massalabs/station/.github/actions/sign-file-digicert@413d4c0bbd042d5e797fbb66bcd2c96be5c3e71a
112+
# with:
113+
# files: ${{ env.TARGET_NAME }}.exe
114+
# SM_API_KEY: ${{ secrets.SM_API_KEY }}
115+
# SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
116+
# SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
117+
# SM_CERT_FINGERPRINT: ${{ secrets.SM_CERT_FINGERPRINT }}
118+
# SM_HOST: ${{ secrets.SM_HOST }}
116119

117-
- name: Upload signed Windows zip (overwrite original)
118-
uses: actions/upload-artifact@v4
119-
with:
120-
name: ${{ env.TARGET_NAME }}
121-
path: ./${{ env.TARGET_NAME }}.exe
122-
overwrite: true
120+
# - name: Upload signed Windows zip (overwrite original)
121+
# uses: actions/upload-artifact@v4
122+
# with:
123+
# name: ${{ env.TARGET_NAME }}
124+
# path: ./${{ env.TARGET_NAME }}.exe
125+
# overwrite: true

.github/workflows/release.yml

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ on:
2323
default: true
2424

2525
jobs:
26-
check-manifest:
27-
name: Check the Manifest
28-
runs-on: ubuntu-24.04
29-
steps:
30-
- uses: actions/checkout@v3
31-
- name: Check the manifest version
32-
if: ${{ inputs.tag_name != '' }}
33-
run: |
34-
sudo apt-get install -y jq
35-
version=$(jq -r '.version' manifest.json)
36-
tag_name=${{ inputs.tag_name }}
37-
tag_name_without_v=${tag_name#v}
38-
if [[ $version != $tag_name_without_v ]]; then
39-
echo "The manifest version is not equal to the tag version"
40-
exit 1
41-
fi
26+
# check-manifest:
27+
# name: Check the Manifest
28+
# runs-on: ubuntu-24.04
29+
# steps:
30+
# - uses: actions/checkout@v3
31+
# - name: Check the manifest version
32+
# if: ${{ inputs.tag_name != '' }}
33+
# run: |
34+
# sudo apt-get install -y jq
35+
# version=$(jq -r '.version' manifest.json)
36+
# tag_name=${{ inputs.tag_name }}
37+
# tag_name_without_v=${tag_name#v}
38+
# if [[ $version != $tag_name_without_v ]]; then
39+
# echo "The manifest version is not equal to the tag version"
40+
# exit 1
41+
# fi
4242

4343
build-plugin:
4444
name: Build node manager plugin
@@ -54,16 +54,16 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
include:
57-
- os: ubuntu-24.04
58-
target: windows
59-
ext: .exe
60-
arch: amd64
61-
- os: ubuntu-24.04
62-
target: linux
63-
arch: amd64
64-
- os: macos-13
65-
target: darwin
66-
arch: amd64
57+
# - os: ubuntu-24.04
58+
# target: windows
59+
# ext: .exe
60+
# arch: amd64
61+
# - os: ubuntu-24.04
62+
# target: linux
63+
# arch: amd64
64+
# - os: macos-13
65+
# target: darwin
66+
# arch: amd64
6767
- os: macos-13
6868
target: darwin
6969
arch: arm64
@@ -99,13 +99,15 @@ jobs:
9999

100100
- name: make bin executable
101101
run: |
102+
ls -la
102103
ls -la ${{ env.TARGET_NAME }}
103104
chmod +x ${{ env.TARGET_NAME }}/*
105+
md5 ${{ env.TARGET_NAME }}/${{ env.TARGET_NAME }}
104106
105107
- name : zip package
106108
shell: bash
107109
run: |
108-
zip -j ${{ env.TARGET_NAME }}.zip web/public/favicon.svg manifest.json ${{ env.TARGET_NAME }}/*
110+
zip -j ${{ env.TARGET_NAME }}.zip web/public/favicon.svg manifest.json ${{ env.TARGET_NAME }}/${{ env.TARGET_NAME }}
109111
cd build && zip -r ../${{ env.TARGET_NAME }}.zip node-massa
110112
111113
- name: Notarize zip for MacOS ${{ matrix.arch }}
@@ -127,7 +129,7 @@ jobs:
127129
128130
create-release:
129131
name: Create release
130-
needs: [check-manifest, zip-package]
132+
needs: [ zip-package]
131133
runs-on: ubuntu-24.04
132134
steps:
133135
- name: Checkout
@@ -139,16 +141,16 @@ jobs:
139141
pattern: 'release-zip-node-manager-plugin_*'
140142
merge-multiple: true
141143

142-
- name: Create release and upload binaries
143-
uses: softprops/action-gh-release@v1
144-
with:
145-
target_commitish: ${{ github.sha }}
146-
tag_name: ${{ inputs.tag_name }}
147-
draft: ${{ inputs.draft }}
148-
prerelease: ${{ inputs.prerelease }}
149-
generate_release_notes: ${{ inputs.generate_release_notes }}
150-
files: |
151-
*.zip
144+
# - name: Create release and upload binaries
145+
# uses: softprops/action-gh-release@v1
146+
# with:
147+
# target_commitish: ${{ github.sha }}
148+
# tag_name: ${{ inputs.tag_name }}
149+
# draft: ${{ inputs.draft }}
150+
# prerelease: ${{ inputs.prerelease }}
151+
# generate_release_notes: ${{ inputs.generate_release_notes }}
152+
# files: |
153+
# *.zip
152154

153155
- name: Configure AWS credentials
154156
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)