Skip to content

Commit

Permalink
1.4.5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStanish committed Jun 8, 2023
1 parent 0461cb6 commit d35cb61
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 107 deletions.
56 changes: 17 additions & 39 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion dist/assets/index-75cddb9b.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/index-7f56c540.js

This file was deleted.

65 changes: 0 additions & 65 deletions dist/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d35cb61

Please sign in to comment.