-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (57 loc) · 2.33 KB
/
release-meshchat.yaml
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
58
59
60
name: Release MeshChat Package
on:
pull_request:
types: [closed]
branches: [release]
push:
jobs:
create-release:
runs-on: ubuntu-latest
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
outputs:
build_version: ${{ steps.detect_version.outputs.build_version }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm install -g release-it @release-it/conventional-changelog @commitlint/config-conventional @commitlint/cli auto-changelog
- id: detect_version
run: echo "build_version=$(npx release-it --release-version)" >> $GITHUB_OUTPUT
- run: git log --graph --all --pretty=format:'%h - (%cr) %s%d' --abbrev-commit --date=relative
- run: npx release-it -VV --ci
- run: git log --graph --all --pretty=format:'%h - (%cr) %s%d' --abbrev-commit --date=relative
# - run: git checkout master
# - run: git rebase release
# - run: git push
build-meshchat-package:
needs: create-release
uses:
./.github/workflows/build-meshchat-package.yaml
with:
build_version: ${{ needs.calculate-version-number.outputs.build_version }}
build_dir: package/meshchat-ipkg
add-meshchat-package-to-release:
needs: build-meshchat-package
# container:
# image: registry.gitlab.com/wt0f/gitlab-runner-images/node:latest
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
- run: npm install -g release-it @release-it/conventional-changelog @commitlint/config-conventional @commitlint/cli auto-changelog
- uses: actions/download-artifact@v4
with:
name: ${{ needs.release_meshchat_package.outputs.package_file }}
path: ${{ needs.release_meshchat_package.outputs.package_file }}
- run: git log --graph --all --pretty=format:'%h - (%cr) %s%d' --abbrev-commit --date=relative
- run: npx release-it -VV --ci --no-increment --no-git --no-npm --github.update=true --github.assets='*.ipk'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_TOKEN }}