Skip to content

Commit

Permalink
Update deploy-to-deno-on-need.yaml: Debug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
dyslab authored Dec 4, 2024
1 parent 7358d47 commit 5544e76
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/deploy-to-deno-on-need.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,29 @@ permissions:
jobs:
deploy-to-deno:
runs-on: ubuntu-latest

steps:
- name: Setup deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Install deployctl
run: |
echo "Deno version is ${{ steps.deno.outputs.deno-version }}"
deno install -gArf jsr:@deno/deployctl
deployctl --version
- name: Project deployment
if: ${{ contains(fromJSON('["mihomo-subs-converter", "nodes-collector", "xlsx2csv-demo"]'), inputs.project) }}
run: |
echo "Deploy project '${{ inputs.project }}'"
cd ${{ github.workspace }}/${{ inputs.project }}
deno task deploy
- name: Input not match
if: ${{ !contains(fromJSON('["mihomo-subs-converter", "nodes-collector", "xlsx2csv-demo"]'), inputs.project) }}
run: echo "Project '${{ inputs.project }}' is invaild."

- name: Checkout repository
uses: actions/checkout@v4

- name: Setup deno
id: deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Install deployctl
run: |
echo "Deno version is ${{ steps.deno.outputs.deno-version }}"
deno install -gArf jsr:@deno/deployctl
deployctl --version
- name: Project deployment
if: ${{ contains(fromJSON('["mihomo-subs-converter", "nodes-collector", "xlsx2csv-demo"]'), inputs.project) }}
run: |
echo "Deploy project '${{ inputs.project }}'"
cd ${{ github.workspace }}/${{ inputs.project }}
deno task deploy
- name: Input not match
if: ${{ !contains(fromJSON('["mihomo-subs-converter", "nodes-collector", "xlsx2csv-demo"]'), inputs.project) }}
run: echo "Project '${{ inputs.project }}' is invaild."

0 comments on commit 5544e76

Please sign in to comment.