Skip to content

Commit

Permalink
continue debugging workflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Sep 10, 2024
1 parent 69eeafe commit 7793283
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,32 @@ jobs:
run: tar zxf foundry.tar.gz
- name: Add Foundry to path
run: echo "$PWD" >> $GITHUB_PATH
- name: Get latest release from kinode-dao/kit
id: get-latest-kit-release
uses: actions/github-script@v6
with:
script: |
const repo = {
owner: 'kinode-dao',
repo: 'kit',
};
const release = await github.rest.repos.getLatestRelease(repo);
const asset = release.data.assets.find(asset => asset.name.match(/kit-x86_64-unknown-linux-gnu\.zip/));
if (!asset) {
throw new Error('Asset not found');
}
return asset.browser_download_url;
result-encoding: string
#- name: Get latest release from kinode-dao/kit
# id: get-latest-kit-release
# uses: actions/github-script@v6
# with:
# script: |
# const repo = {
# owner: 'kinode-dao',
# repo: 'kit',
# };
# const release = await github.rest.repos.getLatestRelease(repo);
# const asset = release.data.assets.find(asset => asset.name.match(/kit-x86_64-unknown-linux-gnu\.zip/));
# if (!asset) {
# throw new Error('Asset not found');
# }
# return asset.browser_download_url;
# result-encoding: string
- name: Download the Kit release
run: wget -q ${DOWNLOAD_URL} -O kit.zip
env:
DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
run: wget -q https://files.yael.solutions/240906/kit-x86_64-unknown-linux-gnu.zip -O kit.zip
#run: wget -q ${DOWNLOAD_URL} -O kit.zip
#env:
# DOWNLOAD_URL: ${{ steps.get-latest-kit-release.outputs.result }}
- name: Unzip the release
run: unzip kit.zip

- name: Download the Kinode release
run: wget -q https://files.yael.solutions/240906/kinode-x86_64-unknown-linux-gnu-simulation-mode.zip -O kinode.zip
run: wget -q https://files.yael.solutions/240906/kinode-x86_64-unknown-linux-gnu-simulation-mode.zip -O kinode.zip
- name: Unzip the Kinode release
run: unzip kinode.zip

Expand Down
3 changes: 3 additions & 0 deletions code/file_transfer/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"wit_version": 0,
"dependencies": [
"file_transfer:template.os"
],
"api_includes": [
"pkg/file_transfer_worker.wasm"
]
},
"external_url": "",
Expand Down

0 comments on commit 7793283

Please sign in to comment.