Skip to content

Commit

Permalink
updating workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev committed Apr 3, 2024
1 parent f014ff7 commit 46c3f63
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@ on: push
jobs:
generate-json-and-save-as-artifacts:
runs-on: ubuntu-latest
container:
image: ghcr.io/tektronix/tsp-toolkit-build:latest
credentials:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install package from npm registry
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
npm install
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Copy HTML file
run: cp node_modules/@tektronix/web-help-documents web-help-documents

- name: Run Python script to generate JSON
run: python main.py

- name: Create artifacts directory
run: mkdir artifacts

- name: Copy generated JSON file to artifacts directory
run: cp generated.json artifacts/

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: generated-json
path: artifacts/
- name: Checkout repository
uses: actions/checkout@v2

- name: Install package from npm registry
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
npm install
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- run: pip install -r requirements.txt

- name: Copy HTML file
run: cp node_modules/@tektronix/web-help-documents web-help-documents

- name: Run Python script to generate JSON
run: python main.py

- name: Create artifacts directory
run: mkdir artifacts

- name: Copy generated JSON file to artifacts directory
run: cp generated.json artifacts/

- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: generated-json
path: artifacts/

0 comments on commit 46c3f63

Please sign in to comment.