forked from elk-zone/elk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update ci to build static version
- Loading branch information
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Docker Image CI | ||
name: Build CI | ||
|
||
on: | ||
push: | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|