Skip to content

feat: enable SMS template (#90) #11

feat: enable SMS template (#90)

feat: enable SMS template (#90) #11

Workflow file for this run

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: '16.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 }}