Add Deno Deploy action

This commit is contained in:
Nikita Karamov 2023-09-03 00:09:26 +02:00
parent 00a4faa495
commit 7059a8adfd
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 31 additions and 0 deletions

31
.github/workflows/deploy-deno.yml vendored Normal file
View File

@ -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