forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Target branch' | ||
required: true | ||
type: string | ||
tag: | ||
description: 'Target tag' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# The branch, tag or SHA to checkout. When checking out the repository that | ||
# triggered a workflow, this defaults to the reference or SHA for that event. | ||
# Otherwise, uses the default branch. | ||
ref: ${{ inputs.branch }} | ||
# Whether to fetch tags, even if fetch-depth > 0. | ||
# Default: false | ||
fetch-tags: true | ||
|
||
- name: Real SHA | ||
run: | | ||
# Workaround due to https://github.com/rickstaa/action-create-tag/issues/36 | ||
echo "GITHUB_SHA=$(git log -1 --format='%H')" >> "$GITHUB_ENV" | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
cache: 'npm' | ||
|
||
- name: Build & Bundle | ||
run: | | ||
npm ci | ||
sed -i 's/{#COMMIT_HASH#}/${{ inputs.tag }}/' JitsiMeetJS.ts | ||
npm pack | ||
mv lib-jitsi-meet-0.0.0.tgz lib-jitsi-meet.tgz | ||
- name: Create Tag | ||
run: | | ||
git config --global user.name "${{ github.actor }}" | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com" | ||
git tag -f -a ${{ inputs.tag }} -m "Release ${{ inputs.tag }}" | ||
git push -f origin ${{ inputs.tag }} | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ inputs.tag }} | ||
prerelease: true | ||
fail_on_unmatched_files: true | ||
files: | | ||
lib-jitsi-meet.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters