Skip to content

Merge pull request #16 from Fazzani/master #5

Merge pull request #16 from Fazzani/master

Merge pull request #16 from Fazzani/master #5

name: "Deploy GitHub Pages"
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Generate MD Table (arr-services)
id: table_arr_services
uses: Locatarr/[email protected]
with:
file-path: ${{ github.workspace }}/arr-services.json
- name: Generate MD Table (other-helpful-apps)
id: table_other_apps
uses: Locatarr/[email protected]
with:
file-path: ${{ github.workspace }}/other-helpful-apps.json
- name: Generate index.md
run: |
mkdir -p tmp/jekyll-source
cp .github/INDEX_TEMPLATE.md tmp/jekyll-source/index.md
cp _config.yml tmp/jekyll-source/
sed -i -e "/ARR_SERVICES_TABLE/r ${{ steps.table_arr_services.outputs.output-file }}" -e "//d" tmp/jekyll-source/index.md
sed -i -e "/OTHER_HELPFUL_APPS_TABLE/r ${{ steps.table_other_apps.outputs.output-file }}" -e "//d" tmp/jekyll-source/index.md
cat tmp/jekyll-source/index.md
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: "tmp/jekyll-source"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}