Skip to content

Commit 8a227b4

Browse files
committed
Added prism workflow
1 parent 1ed15a7 commit 8a227b4

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/test-tar.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

0 commit comments

Comments
 (0)