Skip to content

Commit

Permalink
ci: fix generation of release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
imba28 committed Jul 12, 2022
1 parent 7aee661 commit 09e73c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,20 @@ 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)

- 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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09e73c0

Please sign in to comment.