Skip to content

10.03.2024.2

10.03.2024.2 #141

Workflow file for this run

on:
release:
types: [released]
name: Upload Release Asset
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Copy .env file
run: |
cp .env.example .env
- name: Prepare React Application
run: |
npm i
npm run build
- name: Cleanup
run: |
sudo rm -rf .env
- name: Build project
run: |
zip -r ./invoiceninja-react.zip dist/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
invoiceninja-react.zip