2020-07-06 13:57:57 +02:00
|
|
|
name: CI/CD Release Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types:
|
|
|
|
- published
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release-linux:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build and package the app
|
|
|
|
run: |
|
|
|
|
sudo npm install --unsafe-perm=true --allow-root
|
|
|
|
npm run build
|
2020-07-07 02:15:20 +02:00
|
|
|
sudo npm run package-linux
|
2020-07-06 13:57:57 +02:00
|
|
|
|
|
|
|
- name: Get app version
|
|
|
|
id: package-version
|
|
|
|
uses: martinbeentjes/npm-get-version-action@master
|
|
|
|
|
2020-07-17 11:57:37 +02:00
|
|
|
- name: Get release
|
|
|
|
id: get_release
|
2020-07-18 09:34:21 +02:00
|
|
|
uses: bruceadams/get-release@v1.2.0
|
2020-07-17 11:57:37 +02:00
|
|
|
|
2020-07-06 13:57:57 +02:00
|
|
|
- name: Upload AppImage to release assets
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2020-07-17 11:57:37 +02:00
|
|
|
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
2020-07-06 13:57:57 +02:00
|
|
|
asset_path: ./bin/linux/x64/Fluent Reader-${{ steps.package-version.outputs.current-version }}.AppImage
|
|
|
|
asset_name: Fluent.Reader.${{ steps.package-version.outputs.current-version }}.AppImage
|
|
|
|
asset_content_type: application/octet-stream
|