Skip to content

Commit 64b08f3

Browse files
committed
Fix release workflow
1 parent 0651ade commit 64b08f3

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,30 @@ jobs:
2727
run: npm ci
2828

2929
- name: Build project
30-
run: npm run build
30+
run: npm run build:static
3131
continue-on-error: true
3232

33-
- name: Create tarball
33+
- name: Create archives
3434
run: |
35-
tar -czf networking-toolbox-${{ github.ref_name }}.tar.gz \
35+
mkdir -p dist
36+
tar -czf dist/networking-toolbox-${{ github.ref_name }}.tar.gz \
3637
--exclude=node_modules \
3738
--exclude=.git \
3839
--exclude=.github \
3940
--exclude=tests \
4041
--exclude=playwright-report \
4142
--exclude=coverage \
43+
--exclude=dist \
4244
.
4345
44-
- name: Create zip
45-
run: |
46-
zip -r networking-toolbox-${{ github.ref_name }}.zip . \
46+
zip -r dist/networking-toolbox-${{ github.ref_name }}.zip . \
4747
-x "node_modules/*" \
4848
-x ".git/*" \
4949
-x ".github/*" \
5050
-x "tests/*" \
5151
-x "playwright-report/*" \
5252
-x "coverage/*" \
53-
-x "*.tar.gz"
53+
-x "dist/*"
5454
5555
- name: Generate changelog
5656
id: changelog
@@ -108,8 +108,8 @@ jobs:
108108
- 🐛 [Report Issues](https://github.com/${{ github.repository }}/issues)
109109
- 🌐 [Live Demo](https://networking-toolbox.as93.net)
110110
files: |
111-
networking-toolbox-${{ github.ref_name }}.tar.gz
112-
networking-toolbox-${{ github.ref_name }}.zip
111+
dist/networking-toolbox-${{ github.ref_name }}.tar.gz
112+
dist/networking-toolbox-${{ github.ref_name }}.zip
113113
draft: false
114114
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }}
115115
generate_release_notes: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "networking-toolbox",
33
"private": true,
4-
"version": "0.2.8",
4+
"version": "0.2.9",
55
"type": "module",
66
"scripts": {
77
"dev": "vite dev",

0 commit comments

Comments
 (0)