Skip to content

Commit

Permalink
ci: update ci to build static version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0v1s committed Feb 10, 2025
1 parent dac9493 commit 5d03399
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: Build CI

on:
push:
Expand Down Expand Up @@ -31,6 +31,16 @@ jobs:
docker save -o ./elk.tar elk
zip elk.zip elk.tar
- name: Build the static files
run: |
export NUXT_PUBLIC_DEFAULT_SERVER=bdx.town
export NUXT_PUBLIC_SINGLE_INSTANCE=false
cd elk
yarn install --ignore-scripts
npx yarn generate
mv .output/public dist
zip -r static.zip dist
- name: Create Draft Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -51,6 +61,15 @@ jobs:
asset_name: elk.zip
asset_content_type: application/zip

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./elk/static.zip
asset_name: static.zip
asset_content_type: application/zip

- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5d03399

Please sign in to comment.