From 2d1501492c2506eef5d71b439b3e4f46d8e9160e Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 20:29:58 +0300 Subject: [PATCH 1/6] Create deploy.yml --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..164f6553 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Deploy +on: + push: + branches: main + pull_request: + branches: main + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + permissions: + id-token: write # Needed for auth with Deno Deploy + contents: read # Needed to clone the repository + + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Install Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Build step + run: "npm install && npm run build" # 📝 Update the build command(s) if necessary + + - name: Upload to Deno Deploy + uses: denoland/deployctl@v1 + with: + project: "clear-gnu-70" + entrypoint: "index.js" # 📝 Update the entrypoint if necessary + root: "." # 📝 Update the root if necessary From 974e93bc519c703a2a334d588edbc4e6b722dc65 Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:30:02 +0300 Subject: [PATCH 2/6] Create install.yml --- .github/workflows/install.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/install.yml diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml new file mode 100644 index 00000000..dd6244df --- /dev/null +++ b/.github/workflows/install.yml @@ -0,0 +1,18 @@ + - name: Deploy to Deno Deploy + # You may pin to the exact commit or the version. + # uses: denoland/deployctl@f21311b48f62f0063e3c729fc8a6a5dcdc4da7f9 + uses: denoland/deployctl@1.10.3 + with: + # The name or ID of the project to deploy + project: + # The path or URL to the entrypoint file + entrypoint: + # The path or URL to an import map file + import-map: # optional + # Only upload files that match this pattern (multiline and/or comma-separated) + include: # optional + # Exclude files that match this pattern (multiline and/or comma-separated) + exclude: # optional + # The path to the directory containing the code and assets to upload + root: # optional + From 7a2128f670af90b89777595712e4b600edb4c9f6 Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:43:25 +0300 Subject: [PATCH 3/6] Update deploy.yml --- .github/workflows/deploy.yml | 57 ++++++++++++------------------------ 1 file changed, 18 insertions(+), 39 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 164f6553..dd6244df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,39 +1,18 @@ -name: Deploy -on: - push: - branches: main - pull_request: - branches: main - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - permissions: - id-token: write # Needed for auth with Deno Deploy - contents: read # Needed to clone the repository - - steps: - - name: Clone repository - uses: actions/checkout@v3 - - - name: Install Deno - uses: denoland/setup-deno@v1 - with: - deno-version: v1.x - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: lts/* - - - name: Build step - run: "npm install && npm run build" # 📝 Update the build command(s) if necessary - - - name: Upload to Deno Deploy - uses: denoland/deployctl@v1 - with: - project: "clear-gnu-70" - entrypoint: "index.js" # 📝 Update the entrypoint if necessary - root: "." # 📝 Update the root if necessary + - name: Deploy to Deno Deploy + # You may pin to the exact commit or the version. + # uses: denoland/deployctl@f21311b48f62f0063e3c729fc8a6a5dcdc4da7f9 + uses: denoland/deployctl@1.10.3 + with: + # The name or ID of the project to deploy + project: + # The path or URL to the entrypoint file + entrypoint: + # The path or URL to an import map file + import-map: # optional + # Only upload files that match this pattern (multiline and/or comma-separated) + include: # optional + # Exclude files that match this pattern (multiline and/or comma-separated) + exclude: # optional + # The path to the directory containing the code and assets to upload + root: # optional + From ecacb3af3be710090a70877b39c3e03e037bfd70 Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:52:17 +0300 Subject: [PATCH 4/6] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index dd6244df..e155575f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ - - name: Deploy to Deno Deploy +- name: Deploy to Deno Deploy # You may pin to the exact commit or the version. # uses: denoland/deployctl@f21311b48f62f0063e3c729fc8a6a5dcdc4da7f9 uses: denoland/deployctl@1.10.3 From 816d9be292ec9d02cc6ecbc18957ad599533e077 Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:46:22 +0300 Subject: [PATCH 5/6] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e155575f..55592c68 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,4 +1,4 @@ -- name: Deploy to Deno Deploy + - name: Deploy to Deno Deploy # You may pin to the exact commit or the version. # uses: denoland/deployctl@f21311b48f62f0063e3c729fc8a6a5dcdc4da7f9 uses: denoland/deployctl@1.10.3 From 04a1451f66afc18add764d7e1104bed1a84cc5fb Mon Sep 17 00:00:00 2001 From: psywert <71044741+psywert@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:52:29 +0300 Subject: [PATCH 6/6] Update install.yml --- .github/workflows/install.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index dd6244df..b345e9be 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -1,18 +1,8 @@ - - name: Deploy to Deno Deploy + - name: Install Deno # You may pin to the exact commit or the version. - # uses: denoland/deployctl@f21311b48f62f0063e3c729fc8a6a5dcdc4da7f9 - uses: denoland/deployctl@1.10.3 + # uses: maximousblk/setup-deno@db02549d3ab194be6fcc1275a5c17677316dab36 + uses: maximousblk/setup-deno@v2.0.0 with: - # The name or ID of the project to deploy - project: - # The path or URL to the entrypoint file - entrypoint: - # The path or URL to an import map file - import-map: # optional - # Only upload files that match this pattern (multiline and/or comma-separated) - include: # optional - # Exclude files that match this pattern (multiline and/or comma-separated) - exclude: # optional - # The path to the directory containing the code and assets to upload - root: # optional + # Deno version + deno-version: # optional, default is latest