diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 294d4a0..4816632 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,48 +31,26 @@ jobs: id: get_version run: echo "::set-output name=version::$(node -p "require('./package.json').version")" - - name: Build project - run: npm run build - - - name: Find latest asset - id: find_latest_asset - run: | - asset_path=$(ls -t ./out/make/*.zip | head -n1) - if [ -f "$asset_path" ]; then - echo "::set-output name=asset_path::$asset_path" - else - echo "No asset found" - exit 1 - fi + - name: Build Project + run: npm run make + - name: Archive artifacts + uses: actions/upload-artifact@v2 + with: + name: built-files + path: ${{ github.workspace }}/out/make/*.zip - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v1 with: + files: ${{ github.workspace }}/out/make/*.zip tag_name: v${{ steps.get_version.outputs.version }} - release_name: Release ${{ steps.get_version.outputs.version }} - draft: false - prerelease: false + body: | + Release v${{ steps.get_version.outputs.version }} - - name: Upload Release Asset - id: upload_asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ github.workspace }}/${{ steps.find_latest_asset.outputs.asset_path }} - asset_name: hoseki-admin.zip - asset_content_type: application/zip + This release includes the following changes: + - Caca + - Pipi - - name: Publish Release - run: | - curl \ - -X PATCH \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.id }} \ - -d '{"draft": false}' + draft: false + prerelease: false diff --git a/dist/assets/index-75cddb9b.css b/dist/assets/index-75cddb9b.css deleted file mode 100644 index 58acaa4..0000000 --- a/dist/assets/index-75cddb9b.css +++ /dev/null @@ -1 +0,0 @@ -body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;margin:auto}.drag{-webkit-app-region:drag}.no-drag{-webkit-app-region:no-drag}button.alert{cursor:pointer}.nav{width:100vw;display:flex;flex:0 1 auto;margin-bottom:1rem;background-color:#a9a9a9;max-height:3.5rem}.btn-div{display:flex;flex:1 1 auto;justify-content:right;align-self:end}.table{display:table;border:1px solid black;border-radius:.5rem;overflow:hidden;width:80%;margin:auto;text-align:center}.heading{display:table-row;font-weight:500;background-color:#483d8b;color:#fff;padding:1rem;border-radius:.55rem}.row{color:#fff;display:table-row;background-color:#a9a9a9;padding:1rem;border-radius:.55rem}.cell{display:table-cell;padding:1rem;border:1px solid black} diff --git a/dist/assets/index-7f56c540.js b/dist/assets/index-7f56c540.js deleted file mode 100644 index cd06b46..0000000 --- a/dist/assets/index-7f56c540.js +++ /dev/null @@ -1 +0,0 @@ -(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function c(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=c(e);fetch(e.href,t)}})();console.log('👋 This message is being logged by "renderer.js", included via Vite');const s=document.getElementById("btn"),l=document.getElementById("title");s.addEventListener("click",()=>{const n=l.value;window.electronAPI.setTitle(n)});const d=document.getElementById("btn2"),u=document.getElementById("filePath");d.addEventListener("click",async()=>{const n=await window.electronAPI.openFile();u.innerText=n});const a=document.querySelector(".alert");a.addEventListener("click",function(n){window.electronAPI.customNotification()}); diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 44e9555..0000000 --- a/dist/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Hoseki Admin - - - - - - - - Title: - - - File path: - - -
-

Hello Hoseki! Meh

-

Welcome to your Electron application v1.2.7

-

First paragraph

-

Second paragraph

-

Third paragraph

-
- -
-
-
Name
-
Age
-
Job
-
-
-
Tyler
-
31
-
Autism
-
-
-
Ricky
-
31
-
Gay
-
-
-
Danilo
-
33
-
SUPER Gay
-
-
-
Sam
-
31
-
Based
-
-
- - - - diff --git a/package.json b/package.json index d7d26d2..4eabcdd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hoseki-admin", "productName": "hoseki-admin", - "version": "1.4.3", + "version": "1.4.5", "description": "Hoseki admin app test", "main": ".vite/build/main.js", "scripts": {