Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Add GitHub workflow to build update
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Aug 3, 2023
1 parent dd8e29b commit a0aa48d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update loffice-365

on:
workflow_dispatch:
push:
tags:
- '**'

jobs:
update:
name: Update loffice-365
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"

- name: Install dependencies
run: |
npm install
NATIVEFIER_VERSION=$(npm view nativefier version)
echo "NATIVEFIER_VERSION=$NATIVEFIER_VERSION" >> $GITHUB_ENV
- name: Build
run: |
npm run build
- name: Upload binaries/loffice-365.tgz
uses: actions/upload-artifact@v2
with:
name: loffice-365.tgz
path: binaries/loffice-365.tgz

- name: Upload to GitHub release
uses: svenstaro/upload-release-action@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: output/${{ steps.rename_apk.outputs.apkName }}

0 comments on commit a0aa48d

Please sign in to comment.