Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul authored Feb 27, 2025
1 parent 4513ee9 commit a65789f
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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-client
- 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/rtcstats-visualizer:${{ github.event.inputs.version }}
jitsi/rtcstats-visualizer: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

0 comments on commit a65789f

Please sign in to comment.