-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (54 loc) · 1.36 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
workflow_dispatch:
release:
types: [published]
permissions:
packages: write
jobs:
jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # auth w/JSR
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.41.3
- name: publish to jsr
run: |
cd packages/lightning
deno publish
docker:
runs-on: ubuntu-latest
steps:
# Get the repository's code
- name: checkout
uses: actions/checkout@v4
- name: set up QEMU
uses: docker/setup-qemu-action@v1
- name: set up buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: williamfromnj
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: metadata
id: yo
uses: docker/metadata-action@v3
with:
images: williamfromnj/bolt
tags: type=ref,event=tag
- name: build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.yo.outputs.tags }}
labels: ${{ steps.yo.outputs.labels }}