diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37e946d..1236600 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,6 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 1 - - name: Get current tag id: get_version run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | tail -c 6) @@ -65,15 +64,13 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ env.node_version }} - - run: npm ci - - run: npm run build - - name: Set up Go uses: actions/setup-go@v3 with: go-version: ${{ env.go_version }} - - name: Build backend - run: | + + - run: make openapi-spec + - run: | sed -i "s/dev-build/${{ steps.get_version.outputs.VERSION }}/" assets/App.vue make bundle diff --git a/Makefile b/Makefile index d88766c..7c0d443 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ clean: rm -rf dist rm -rf pkg/openapi -bundle: build +bundle: build frontend mkdir -p ./dist tar -czvf dist/spolyr-linux-amd64.tar.gz public spolyr tar -czvf dist/spolyr-windows-amd64.tar.gz public spolyr.exe