FluentReader/.github/workflows/release-linux.yml

40 lines
1.2 KiB
YAML
Raw Normal View History

2020-07-06 13:57:57 +02:00
name: CI/CD Release Linux
on:
2021-08-21 23:49:56 +02:00
release:
types:
- published
2020-07-06 13:57:57 +02:00
jobs:
2021-08-21 23:49:56 +02:00
release-linux:
runs-on: ubuntu-latest
2020-07-06 13:57:57 +02:00
2021-08-21 23:49:56 +02:00
steps:
- uses: actions/checkout@v2
2020-07-06 13:57:57 +02:00
2021-08-21 23:49:56 +02:00
- name: Build and package the app
run: |
2022-06-20 00:54:30 +02:00
npm install
2021-08-21 23:49:56 +02:00
npm run build
2022-06-20 00:54:30 +02:00
npm run package-linux
2020-07-06 13:57:57 +02:00
2021-08-21 23:49:56 +02:00
- name: Get app version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
2020-07-06 13:57:57 +02:00
2021-08-21 23:49:56 +02:00
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-07-17 11:57:37 +02:00
2021-08-21 23:49:56 +02:00
- name: Upload AppImage to release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
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