@@ -288,122 +288,3 @@ jobs:
288288
289289 - name : Run Tests
290290 run : cd rewriter/native && cargo test
291-
292- # upload:
293- # name: Upload release
294- # runs-on: ubuntu-latest
295- # needs: [build, tests]
296- # permissions: write-all
297- # if: github.ref == 'refs/heads/main'
298-
299- # steps:
300- # - name: Delete old release and tag
301- # uses: dev-drprasad/[email protected] 302- # with:
303- # delete_release: true
304- # tag_name: latest
305- # github_token: ${{ github.token }}
306-
307- # - name: Get artifacts
308- # uses: actions/download-artifact@v4
309- # with:
310- # name: packaged-scramjet
311- # path: .
312-
313- # - name: Release to GitHub
314- # uses: ncipollo/release-action@v1
315- # with:
316- # name: Continuous Build
317- # tag: latest
318- # commit: main
319- # body: "${{ github.event.head_commit.url }} ${{ github.event.head_commit.message }}"
320- # artifacts: "mercuryworkshop-scramjet-*.tgz"
321- # prerelease: true
322-
323- # publish:
324- # name: Publish Scramjet to NPM
325- # runs-on: ubuntu-latest
326- # needs: [build, tests]
327- # if: false
328- # permissions: write-all
329- # steps:
330- # - name: Setup Node.js
331- # uses: actions/setup-node@v2
332- # with:
333- # node-version: "20"
334- # registry-url: "https://registry.npmjs.org"
335-
336- # - name: Get artifacts
337- # uses: actions/download-artifact@v4
338- # with:
339- # name: packaged-scramjet
340- # path: .
341-
342- # - name: Extract package
343- # run: tar xvf mercuryworkshop-scramjet-*.tgz package --strip-components=1
344-
345- # - name: Check the version
346- # id: check
347- # run: |
348- # CURRENT_VERSION=$(jq -r .version package.json)
349- # echo "Current version: $CURRENT_VERSION"
350- # LATEST_VERSION=$(npm view @mercuryworkshop/scramjet version || echo "0.0.0")
351- # echo "Latest NPM version: $LATEST_VERSION"
352-
353- # if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ];
354- # then
355- # echo "Version changed"
356- # echo "version_changed=true" >> $GITHUB_OUTPUT
357- # echo "new_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
358- # else
359- # echo "Version not changed"
360- # echo "version_changed=false" >> $GITHUB_OUTPUT
361- # fi
362-
363- # - name: Publish
364- # if: steps.check.outputs.version_changed == 'true'
365- # run: npm publish --access public --no-git-checks
366- # env:
367- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
368-
369- # pages:
370- # name: Upload to Github Pages
371- # runs-on: ubuntu-latest
372- # needs: [build, tests]
373- # permissions: write-all
374- # if: github.ref == 'refs/heads/main'
375- # steps:
376- # - name: Checkout code
377- # uses: actions/checkout@v4
378-
379- # - name: Setup pnpm
380- # uses: pnpm/action-setup@v4
381- # with:
382- # version: latest
383-
384- # - name: Setup Node.js
385- # uses: actions/setup-node@v4
386- # with:
387- # node-version: "22"
388- # cache: "pnpm"
389-
390- # - name: Install dependencies
391- # run: pnpm install
392-
393- # - name: Get artifacts
394- # uses: actions/download-artifact@v4
395- # with:
396- # name: scramjet
397- # path: dist
398-
399- # - name: build statics
400- # run: bash ./ci/buildstatic.sh
401-
402- # - name: upload pages artifact
403- # uses: actions/upload-pages-artifact@v3
404- # with:
405- # path: "./staticbuild"
406-
407- # - name: deploy to github
408- # id: deployment
409- # uses: actions/deploy-pages@v4
0 commit comments