Sam Therapy
7ceed97f6e
Some checks failed
Publish / build (push) Failing after 1m6s
Signed-off-by: Sam Therapy <sam@samtherapy.net>
42 lines
978 B
YAML
42 lines
978 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup Deno
|
|
uses: denoland/setup-deno@v1
|
|
with:
|
|
deno-version: v2.x
|
|
- name: Build site
|
|
run: |
|
|
deno task build
|
|
cp src/static/.domains _site
|
|
|
|
- name: Deploy to Codeberg Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: github.ref == 'refs/heads/master'
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./_site
|
|
force_orphan: true
|
|
publish_branch: pages
|
|
- name: Deploy to Deno Deploy
|
|
uses: samtherapy/deno-deploy@master
|
|
with:
|
|
deno_deploy_token: ${{ secrets.DENO_DEPLOY_TOKEN }}
|
|
entry_point: serve.ts
|
|
project: samme
|
|
production: true
|