-
Notifications
You must be signed in to change notification settings - Fork 39
56 lines (54 loc) · 1.65 KB
/
release.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
name: "Release"
on:
workflow_dispatch:
inputs:
version:
description: Version number
required: true
type: string
jobs:
auto-publish:
name: "AutoPublish"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Checkout source code"
uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: npm version ${{ github.event.inputs.version }} --no-commit-hooks --no-git-tag-version
- run: npm install
- run: npm run build
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Bump version
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: docker release
uses: docker/build-push-action@v6
with:
push: true
tags: |
jitsi/excalidraw-backend:${{ github.event.inputs.version }}
jitsi/excalidraw-backend:latest
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
- name: release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.version }}
generate_release_notes: true
make_latest: true