From 7059a8adfd9525a17844d3dd49cf01326ddd2adc Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sun, 3 Sep 2023 00:09:26 +0200 Subject: [PATCH] Add Deno Deploy action --- .github/workflows/deploy-deno.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-deno.yml diff --git a/.github/workflows/deploy-deno.yml b/.github/workflows/deploy-deno.yml new file mode 100644 index 0000000..3aaf538 --- /dev/null +++ b/.github/workflows/deploy-deno.yml @@ -0,0 +1,31 @@ +name: Deploy to Deno + +on: + push: + branches: + - "main" + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + permissions: + id-token: write + contents: read + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - run: pnpm install --frozen-lockfile + + - run: pnpm run build --s2f-use-deno + + - name: Upload to Deno Deploy + uses: denoland/deployctl@v1 + with: + project: share2fedi + entrypoint: server/entry.mjs + root: dist