Skip to content

Commit

Permalink
ci: update github workflows for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 5, 2024
1 parent 6ac1593 commit c4fb17a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 35 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PATH
shell: bash
run: |
mkdir -p "$HOME/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- uses: actions/checkout@v4

- name: Install jsonnet
shell: bash
run: |
wget https://github.com/google/go-jsonnet/releases/download/v${JSONNET_VERSION}/go-jsonnet_${JSONNET_VERSION}_Linux_x86_64.tar.gz
tar --extract --file=go-jsonnet_0.20.0_Linux_x86_64.tar.gz jsonnet
mv jsonnet "$HOME/.local/bin"
chmod u+x "$HOME/.local/bin/jsonnet"
wget -qO- https://github.com/google/go-jsonnet/releases/download/v${JSONNET_VERSION}/go-jsonnet_${JSONNET_VERSION}_Linux_x86_64.tar.gz \
| tar -xvz --one-top-level=$HOME/.local/bin
- name: Install jsonnet-bundler
shell: bash
run: |
wget https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64
mv jb-linux-amd64 "$HOME/.local/bin/jb"
wget -qO "$HOME/.local/bin/jb" https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64
chmod u+x "$HOME/.local/bin/jb"
- name: Tests
- name: Run tests
run: make test
19 changes: 0 additions & 19 deletions .github/workflows/main.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- main

jobs:
publish-docs:
name: Publish docs
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5

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

- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: Publish docs
run: mkdocs gh-deploy --force -f .mkdocs/mkdocs.yml

0 comments on commit c4fb17a

Please sign in to comment.