diff --git a/.github/workflows/upload_to_release.yml b/.github/workflows/upload_to_release.yml new file mode 100644 index 0000000..227058c --- /dev/null +++ b/.github/workflows/upload_to_release.yml @@ -0,0 +1,50 @@ +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 }} diff --git a/README.md b/README.md index 5341d61..cc8d01b 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,33 @@ This repo contains Bootstrap templates for the task tracker project. Getting started --------------- -[//]: # (TODO: complete getting section) +Download the repository to your local machine. +This project uses `npm` and `nodejs` to handle builds via `webpack`. + +Install dependencies using command: + +```shell +npm install +``` + +After that other commands will be available. +You can review all commands within `scripts` section of *package.json* file. + +Create a developers' distribution: + +```shell +npm run build:dev +``` + +Run dev server: + +```shell +npm run start +``` References ---------- - [Bootstrap v5.3](https://getbootstrap.com/docs/5.3/) +- [NodeJS](https://nodejs.org) +- [Webpack](https://webpack.js.org/) diff --git a/package.json b/package.json index 0f6cf76..e9795e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tasktracker-bootstrap", - "version": "0.2.0", + "version": "1.0.0", "description": "Task tracker site bootstrap5 templates", "private": true, "scripts": { diff --git a/src/index.js b/src/index.js index b04edb5..f52be6f 100644 --- a/src/index.js +++ b/src/index.js @@ -15,7 +15,6 @@ import * as htmx from "htmx.org" // include custom stylesheets, javascript, icons etc. import "./scss/auth.scss" import "./scss/detail.scss" -import "./scss/form.scss" import "./scss/list.scss" import "./scss/profile.scss" diff --git a/src/scss/form.scss b/src/scss/form.scss deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/partials/_navbar.hbs b/src/views/partials/_navbar.hbs index 21cc55d..85cf472 100644 --- a/src/views/partials/_navbar.hbs +++ b/src/views/partials/_navbar.hbs @@ -6,18 +6,20 @@ diff --git a/src/views/partials/profile_main.hbs b/src/views/partials/profile_main.hbs index 6764ab7..75b8dc0 100644 --- a/src/views/partials/profile_main.hbs +++ b/src/views/partials/profile_main.hbs @@ -5,12 +5,12 @@

{{email}}

-
+
avatar
-
-