-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (48 loc) · 1.43 KB
/
release.yml
File metadata and controls
50 lines (48 loc) · 1.43 KB
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
name: Release
on:
push:
tags:
- "v**.**.**"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: sudo snap install snapcraft --classic
- run: yarn
- run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- run: npm version $VERSION --git-tag-version=false --allow-same-version
- run: yarn generate-credentials
env:
RINGCENTRAL_CLIENT_ID: ${{ secrets.RINGCENTRAL_CLIENT_ID }}
RINGCENTRAL_SERVER: ${{ secrets.RINGCENTRAL_SERVER }}
- run: yarn package-linux
env:
SNAPCRAFT_BUILD_ENVIRONMENT: host
- name: Publish Snapcraft
run: |
snapcraft upload --release=edge release/*.snap
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
SNAPCRAFT_BUILD_ENVIRONMENT: host
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
release/latest-linux.yml
release/*.deb
release/*.rpm
release/*.AppImage
release/*.snap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}