Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/hosting-godot-html5-template-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: hosting-godot-html5-template

on:
push:
branches: [master]
pull_request:
paths:
- hosting/godot-html5-template/**
- .github/workflows/hosting-godot-html5-template-example.yml

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
hosting-godot-html5-template:
runs-on: ubuntu-24.04
container: ghcr.io/dfinity/icp-dev-env-all:0.3.2
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Deploy
working-directory: hosting/godot-html5-template
run: |
icp network start -d
icp deploy
47 changes: 11 additions & 36 deletions .github/workflows/hosting-photo-storage-example.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,27 @@
name: hosting-photo-storage

on:
push:
branches:
- master
branches: [master]
pull_request:
paths:
- hosting/photo-storage/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-photo-storage-example.yml
- .ic-commit

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
hosting-photo-storage-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Photo Storage Darwin
run: |
pushd hosting/photo-storage
npm install
npm run build
icp network start -d
icp deploy
popd
hosting-photo-storage-linux:
hosting-photo-storage:
runs-on: ubuntu-24.04
container: ghcr.io/dfinity/icp-dev-env-all:0.3.2
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Photo Storage Linux
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Deploy
working-directory: hosting/photo-storage
run: |
pushd hosting/photo-storage
npm install
npm run build
icp network start -d
icp deploy
popd
43 changes: 11 additions & 32 deletions .github/workflows/hosting-static-website-example.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,27 @@
name: hosting-static-website

on:
push:
branches:
- master
branches: [master]
pull_request:
paths:
- hosting/static-website/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-static-website-example.yaml
- .ic-commit

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
hosting-static-website-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Static Website Darwin
run: |
pushd hosting/static-website
icp network start -d
icp deploy
popd
hosting-static-website-linux:
hosting-static-website:
runs-on: ubuntu-24.04
container: ghcr.io/dfinity/icp-dev-env-all:0.3.2
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Static Website Linux
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Deploy
working-directory: hosting/static-website
run: |
pushd hosting/static-website
icp network start -d
icp deploy
popd
43 changes: 11 additions & 32 deletions .github/workflows/hosting-unity-webgl-example.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,27 @@
name: hosting-unity-webgl

on:
push:
branches:
- master
branches: [master]
pull_request:
paths:
- hosting/unity-webgl-template/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-unity-webgl-example.yaml
- .ic-commit

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
hosting-unity-webgl-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Unity Webgl Darwin
run: |
pushd hosting/unity-webgl-template
icp network start -d
icp deploy
popd
hosting-unity-webgl-linux:
hosting-unity-webgl:
runs-on: ubuntu-24.04
container: ghcr.io/dfinity/icp-dev-env-all:0.3.2
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Pre-download network launcher
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bash .github/workflows/pre-download-launcher.sh
- name: Hosting Unity Webgl Linux
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Deploy
working-directory: hosting/unity-webgl-template
run: |
pushd hosting/unity-webgl-template
icp network start -d
icp deploy
popd
8 changes: 4 additions & 4 deletions hosting/godot-html5-template/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
canisters:
- name: godot_html5_assets
- name: frontend
recipe:
type: "@dfinity/asset-canister@v2.1.0"
type: "@dfinity/asset-canister@v2.2.1"
configuration:
dir: dist
build:
- mkdir -p dist
- cp -r src/godot_html5_assets/assets/* dist/
- cp -r src/godot_html5_assets/src/* dist/
- cp -r frontend/assets/* dist/
- cp frontend/index.html dist/
4 changes: 2 additions & 2 deletions hosting/photo-storage/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
canisters:
- name: photo-storage
- name: frontend
recipe:
type: "@dfinity/asset-canister@v2.1.0"
type: "@dfinity/asset-canister@v2.2.1"
configuration:
dir: dist
build:
Expand Down
2 changes: 1 addition & 1 deletion hosting/static-website/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
canisters:
- name: frontend
recipe:
type: "@dfinity/asset-canister@v2.1.0"
type: "@dfinity/asset-canister@v2.2.1"
configuration:
dir: dist
build:
Expand Down
8 changes: 4 additions & 4 deletions hosting/unity-webgl-template/icp.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
canisters:
- name: unity_webgl_template_assets
- name: frontend
recipe:
type: "@dfinity/asset-canister@v2.1.0"
type: "@dfinity/asset-canister@v2.2.1"
configuration:
dir: dist
build:
- mkdir -p dist
- cp -r src/unity_webgl_template_assets/assets/* dist/
- cp -r src/unity_webgl_template_assets/src/* dist/
- cp -r frontend/assets/* dist/
- cp frontend/index.html dist/
Loading