File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 tags :
99 - ' html-query-*'
1010 workflow_dispatch :
11+ inputs :
12+ tag :
13+ required : true
14+ description : ' The tag name to use for the release'
1115
1216jobs :
1317 # Build job
@@ -50,15 +54,25 @@ jobs:
5054 path : ./html-query-web-ui/dist/
5155 retention-days : 1
5256
57+ - name : Create Bundle
58+ run : |
59+ tar czf wasm.tar.gz --directory=html-query-web-ui/dist/ .
60+
5361 - name : Release
5462 uses : softprops/action-gh-release@v1
55- if : startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
63+ if : startsWith(github.ref, 'refs/tags/')
64+ with :
65+ draft : false
66+ files : wasm.tar.gz
67+
68+ - name : Release
69+ uses : softprops/action-gh-release@v1
70+ if : github.event_name == 'workflow_dispatch'
5671 with :
57- fail_on_unmatched_files : true
58- tag_name : latest
59- name : latest
60- files : |
61- html-query-web-ui/dist/**/*
72+ draft : false
73+ tag_name : ${{ github.event.inputs.tag }}
74+ files : wasm.tar.gz
75+
6276
6377 deploy :
6478 # Add a dependency to the build job
Original file line number Diff line number Diff line change 9898 with :
9999 command : test
100100
101- # cross_builds:
102- # name: Cross-build
103- # runs-on: ubuntu-latest
104- # strategy:
105- # matrix:
106- # target:
107- # - armv7-linux-androideabi
108- # - armv7-unknown-linux-gnueabihf
109- # - armv7-unknown-linux-musleabihf
110- # steps:
111- # - uses: actions/checkout@v4
112- #
113- # - uses: actions-rs/toolchain@v1
114- # with:
115- # toolchain: stable
116- # target: ${{ matrix.target }}
117- # override: true
118- # - uses: Swatinem/rust-cache@v2
119- # - uses: actions-rs/cargo@v1
120- # with:
121- # use-cross: true
122- # command: check
123- # args: --target ${{ matrix.target }}
124- # - uses: actions-rs/cargo@v1
125- # with:
126- # use-cross: true
127- # command: test
128- # args: --target ${{ matrix.target }}
129- # - uses: actions-rs/cargo@v1
130- # if: startsWith(github.ref, 'refs/tags/')
131- # with:
132- # use-cross: true
133- # command: build
134- # args: --target ${{ matrix.target }} --release
135- # - name: Package
136- # if: startsWith(github.ref, 'refs/tags/')
137- # shell: bash
138- # run: |
139- # cd target/${{ matrix.target }}/release/
140- # tar czvf ../../../hq-${{ matrix.target }}.tar.gz hq
141- # cd -
142- # - name: Publish
143- # uses: softprops/action-gh-release@v1
144- # if: startsWith(github.ref, 'refs/tags/')
145- # with:
146- # draft: false
147- # files: 'hq*'
148-
149101 checks :
150102 name : Checks
151103 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments