16.06.2024.4 #161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |