Skip to content

Commit

Permalink
trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
selimseker committed Sep 6, 2024
1 parent 4eb241d commit 518e038
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,45 @@ jobs:
run: |
${{ matrix.env }} go build -tags="${{ matrix.tags }}" -o dkn-compute-launcher${{ matrix.extension }} .
- name: Prepare Launch Release Files
- name: Download dkn-compute binaries
env:
FOLDER_NAME: dkn-compute-node
ZIP_NAME: dkn-compute-launcher-${{ matrix.osname }}-${{ matrix.arch }}
run: |
mkdir $FOLDER_NAME
# copy the binary
cp ./dkn-compute-launcher${{ matrix.extension }} $FOLDER_NAME/dkn-compute-launcher${{ matrix.extension }}
# download .env.example and save it as .env
curl -o $FOLDER_NAME/.env https://raw.githubusercontent.com/firstbatchxyz/dkn-compute-node/master/.env.example
# download exe
mkdir node_exe
cd node_exe
echo "Downloading dkn-compute-node-${{ matrix.osname }}-${{ matrix.arch }}.zip..."
if curl -L -o dkn-compute-node-exe.zip https://github.com/firstbatchxyz/dkn-compute-node/releases/latest/download/dkn-compute-node-${{ matrix.osname }}-${{ matrix.arch }}.zip; then
echo "Download completed."
# copy exe to zip folder
unzip ./dkn-compute-node-exe.zip
cp dkn-compute${{ matrix.extension }} ../$FOLDER_NAME/dkn-compute${{ matrix.extension }}
cd ..
zip -r $ZIP_NAME.zip $FOLDER_NAME
else
echo "Error: Failed to download the zip file."
exit 1
fi
- name: Prepare Launch Release Files
env:
FOLDER_NAME: dkn-compute-node
ZIP_NAME: dkn-compute-launcher-${{ matrix.osname }}-${{ matrix.arch }}
run: |
mkdir $FOLDER_NAME
# copy the binary
cp ./dkn-compute-launcher${{ matrix.extension }} $FOLDER_NAME/dkn-compute-launcher${{ matrix.extension }}
# download .env.example and save it as .env
curl -o $FOLDER_NAME/.env https://raw.githubusercontent.com/firstbatchxyz/dkn-compute-node/master/.env.example
# copy exe to zip folder
cd node_exe
unzip dkn-compute-node-exe.zip
cp dkn-compute${{ matrix.extension }} ../$FOLDER_NAME/dkn-compute${{ matrix.extension }}
cd ..
zip -r $ZIP_NAME.zip $FOLDER_NAME
- name: Upload Launch Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 518e038

Please sign in to comment.