Skip to content

Commit

Permalink
Revert to previous commit to temporarily fix bug preventing docs publ…
Browse files Browse the repository at this point in the history
…ication (#48)
  • Loading branch information
robbibt committed May 16, 2023
1 parent 623be1d commit ea3eba2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,28 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sudo apt-get install pandoc
- name: Fetch notebooks
run: |
git clone --depth 1 https://github.com/GeoscienceAustralia/dea-notebooks.git notebooks
cd notebooks && git checkout -b stable
- name: Build docs
run: |
make html
- name: Configure AWS credentials via OIDC
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
if: ${{ github.event_name != 'pull_request' }}
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::538673716275:role/github-actions-dea-docs
aws-region: ap-southeast-2

- name: Publish
if: ${{ github.event_name == 'pull_request' && github.ref_name == 'master' }}
if: ${{ github.event_name != 'pull_request' }}
env:
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}
run: ./.deployment/deploy.sh

0 comments on commit ea3eba2

Please sign in to comment.