diff --git a/.github/workflows/cheatsheet.yml b/.github/workflows/cheatsheet.yml new file mode 100644 index 0000000..757d537 --- /dev/null +++ b/.github/workflows/cheatsheet.yml @@ -0,0 +1,25 @@ +name: cheatsheet + +on: [push, pull_request, workflow_dispatch] + +jobs: + cheatsheet: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Build Docker Image + run: | + docker compose build + docker compose up + + - name: Copy Generated File + run: cp -r ../../cheatsheets /github/workspace/ + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: cheatsheets + path: cheatsheets