containerlib/.forgejo/workflows/publish.yaml
Hamcha ad61d3e637
All checks were successful
Build and push Docker image / build (push) Successful in 8s
ci: allow dirty
2024-04-07 23:27:25 +02:00

22 lines
508 B
YAML

name: Build and push Docker image
# Only on new tags
on:
push:
tags:
- "*.*.*"
workflow_dispatch:
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Update jsr.json
run: sed -i "s/x.x.x/${GITHUB_REF_NAME#v}/g" jsr.json
- name: Setup Deno
run: |
curl -fsSL https://deno.land/x/install/install.sh | sh
- name: Publish to JSR
run: /root/.deno/bin/deno publish --token ${{ secrets.GH_TOKEN }} --allow-dirty