mirror of
https://github.com/osnr/TabFS.git
synced 2024-06-15 20:25:18 +02:00
create a github workflow for auto building a dev release
This commit is contained in:
parent
b77bf24168
commit
a43adbcf1c
74
.github/workflows/build-linux.yml
vendored
Normal file
74
.github/workflows/build-linux.yml
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
name: Build and release TabFS for Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [15.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install libfuse-dev
|
||||
run: sudo apt-get install libfuse-dev
|
||||
|
||||
- name: Compile the FUSE filesystem
|
||||
run: cd fs && make
|
||||
|
||||
- name: Load Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install Web-ext
|
||||
run: npm install --global web-ext
|
||||
|
||||
- name: Build browser extension
|
||||
run: web-ext build -s extension -n tabfs.zip
|
||||
|
||||
- name: Create tarball
|
||||
run: tar -cvf tabfs-filesystem.tar fs/tabfs install.sh
|
||||
|
||||
- name: Set git commit hash
|
||||
id: vars
|
||||
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: dev/${{ steps.vars.outputs.sha_short }}
|
||||
release_name: 'Development Release #${{ steps.vars.outputs.sha_short }}'
|
||||
draft: false
|
||||
prerelease: true
|
||||
|
||||
- name: Upload filesystem asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./tabfs-filesystem.tar
|
||||
asset_name: tabfs-filesystem.tar
|
||||
asset_content_type: application/x-tar
|
||||
|
||||
- name: Upload browser extension
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./web-ext-artifacts/tabfs.zip
|
||||
asset_name: tabfs-web-extension.zip
|
||||
asset_content_type: application/zip
|
Loading…
Reference in a new issue