misc: fix libuuid dependency issue in opensusu with rpm (#94) #13
Workflow file for this run
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
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 }} |