|
|
@@ -28,11 +28,15 @@ jobs:
|
|
|
run: go build -ldflags="-w -s -X 'main.Version=production'" -o ./bin/app ./cmd/app
|
|
|
- name: Build Migration Binary
|
|
|
run: go build -ldflags '-w -s' -o ./bin/migrate ./cmd/migrate
|
|
|
+ - name: Compress binaries
|
|
|
+ run: |
|
|
|
+ upx bin/* --best --lzma
|
|
|
- name: Store Binaries
|
|
|
uses: actions/upload-artifact@v3
|
|
|
with:
|
|
|
name: go-binaries
|
|
|
path: bin/
|
|
|
+ retention-days: 1
|
|
|
build-npm:
|
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
|
@@ -55,6 +59,7 @@ jobs:
|
|
|
with:
|
|
|
name: npm-static-files
|
|
|
path: dashboard/build/
|
|
|
+ retention-days: 1
|
|
|
porter-deploy:
|
|
|
runs-on: ubuntu-latest
|
|
|
needs: [build-go, build-npm]
|