From fdddf3722644707a9aec57f19e9ca232c0c1e5e0 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Fri, 20 Oct 2023 19:02:38 -0600 Subject: [PATCH 1/2] Switch GitHub Deployment method to Actions --- .github/workflows/documentation.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 975ae16b..78b89287 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -21,7 +21,7 @@ on: types: [opened, synchronize] jobs: - documentation: + build-documentation: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -55,13 +55,22 @@ jobs: env: EARTHDATA_USERNAME: ${{ secrets.EDL_USERNAME }} EARTHDATA_PASSWORD: ${{ secrets.EDL_PASSWORD }} - - - name: Deploy - if: | - github.event_name == 'push' - && (github.ref == 'refs/heads/main' || github.ref == 'ref/heads/documentation') - && github.repository == 'nsidc/earthaccess' - uses: peaceiris/actions-gh-pages@v3 + - name: Upload site artifact + uses: actions/upload-pages-artifact@v1 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site + path: ./site + + deploy-documentation: + if: | + github.event_name == 'push' + && (github.ref == 'refs/heads/main' || github.ref == 'ref/heads/documentation') + && github.repository == 'nsidc/earthaccess' + runs-on: ubuntu-latest + needs: documentation + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 From d7b65c53c3203b7908f03dea11a17d0cdd8486c1 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 25 Oct 2023 16:15:35 -0600 Subject: [PATCH 2/2] Fix mistaken dependency name Co-authored-by: James Bourbeau --- .github/workflows/documentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 78b89287..75e859aa 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -66,7 +66,7 @@ jobs: && (github.ref == 'refs/heads/main' || github.ref == 'ref/heads/documentation') && github.repository == 'nsidc/earthaccess' runs-on: ubuntu-latest - needs: documentation + needs: build-documentation environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}