Skip to content

removed owner from template, is provided by repo value #6

removed owner from template, is provided by repo value

removed owner from template, is provided by repo value #6

Workflow file for this run

# This is a basic workflow takes care of building and deploying
# catalog when pushing to main branch
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
pages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip install -U pip
pip install eodash_catalog
- name: Build
env:
SH_INSTANCE_ID: ${{ secrets.SH_INSTANCE_ID }}
SH_CLIENT_ID: ${{ secrets.SH_CLIENT_ID }}
SH_CLIENT_SECRET: ${{ secrets.SH_CLIENT_SECRET }}
run: eodash_catalog
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true
# Make sure github pages is enabled and set to gh-pages branch
- name: Update GitHub Pages source
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${{ github.repository }}/pages" \
-d '{"source":{"branch":"main","path":"/"}}'