Skip to content

Commit

Permalink
testing using tutorial-actions/site over manual update here (#13)
Browse files Browse the repository at this point in the history
* testing using tutorial-actions/site over manual update here
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Oct 30, 2022
1 parent 981b9f9 commit b3db9d0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 453 deletions.
15 changes: 0 additions & 15 deletions .github/generate.sh

This file was deleted.

2 changes: 0 additions & 2 deletions .github/requirements.txt

This file was deleted.

84 changes: 0 additions & 84 deletions .github/update-cci.py

This file was deleted.

173 changes: 0 additions & 173 deletions .github/validate.py

This file was deleted.

16 changes: 1 addition & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,5 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7

- name: Build Site
run: |
cd docs/
bundle install
bundle exec jekyll build
cd -
- name: Validate Data
run: |
pip install -r .github/requirements.txt
python .github/validate.py docs/_site/api/tutorials.json
uses: rse-ops/tutorial-actions/validate@main
32 changes: 4 additions & 28 deletions .github/workflows/update-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Parse Repos from Data
run: |
pip install -r .github/requirements.txt
python .github/update-cci.py
cat contributor-ci.yaml
- name: Generate Tutorial Data
run: /bin/bash .github/generate.sh

- name: Update Data
uses: vsoch/contributor-ci@0.0.15
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
results_dir: docs/_data/
extract: repos repo_metadata topics languages releases stars activity_commits activity_lines
extract_save_format: year/month

- name: Check that results exist
run: tree _data

- name: Push Results
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@users.noreply.github.com"
git add docs/_data/data/*
git commit -m "Automated push with new data results $(date '+%Y-%m-%d')" || exit 0
git push origin main || exit 0
- name: Update Tutorial Site
uses: rse-ops/tutorial-actions/site@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b3db9d0

Please sign in to comment.