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

[1.0.4] Bootstrap5 templates bundle #2

[1.0.4] Bootstrap5 templates bundle

[1.0.4] Bootstrap5 templates bundle #2

name: Upload distribution to release
on:
release:
types:
- published
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build the dist
run: npm run build:dev
- name: Create archives
run: |
zip -r dist.zip ./dist
zip -r handlebars.zip ./src/views
- name: Upload release asset (dist)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist.zip
asset_name: dist.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release asset (handlebars)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./handlebars.zip
asset_name: handlebars.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}