File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflow will download the nodejs based prism-cli
2+ # which this progeam uses for its testa
3+
4+
5+ name : Package prism
6+ env :
7+ TAR_REPRO_OPTS : ' "--mtime=2024-01-01 00:00 UTC" --sort=name --owner=0 --group=0 --numeric-owner'
8+ TAR_NAME : ${{ github.event.repository.name }}-${{ github.ref_name }}-prism.tar.gz
9+ TAR_FILES : node_modules package.json package-lock.json
10+ CHECKOUT_DIR : ${{ github.event.repository.name }}-${{ github.ref_name }}
11+
12+ on :
13+ push :
14+ tags :
15+ - ' *'
16+
17+
18+
19+ jobs :
20+ vendor-tarball :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ with :
25+ path : ${{ env.CHECKOUT_DIR }}
26+
27+ - name : Set up node
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : " latest"
31+
32+ - name : fetch Prism and deps
33+ run : npm install $(grep -m1 prism-cli scripts/mock | awk '{print $3}' | sed s/--package=//)
34+ working-directory : ${{ env.CHECKOUT_DIR }}
35+
36+ - name : Create Archive
37+ run : tar ${{ env.TAR_REPRO_OPTS }} -caf ${{ env.TAR_NAME }} ${{ env.TAR_FILES }}
38+ working-directory : ${{ env.CHECKOUT_DIR }}
39+
40+ - name : release
41+ uses : softprops/action-gh-release@v2
42+ with :
43+ files : ${{ env.CHECKOUT_DIR }}/${{ env.TAR_NAME }}
44+ body : Prism tarball for tests for Gentoo Linux overlay package
45+ generate_release_notes : false
46+ fail_on_unmatched_files : true
You can’t perform that action at this time.
0 commit comments