tidy up the nav buttons #870
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy | |
| on: push | |
| jobs: | |
| stagingbuild: | |
| name: Staging Build and Deploy | |
| runs-on: ubuntu-latest | |
| if: github.ref_name == 'staging' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: Hugo Setup | |
| #uses: peaceiris/actions-hugo@v2 | |
| uses: deining/actions-hugo@v3.1.0-0 | |
| with: | |
| hugo-version: 'latest' | |
| extended: true | |
| withdeploy: true | |
| - name: Hugo Build | |
| run: hugo --baseURL "https://staging.doi.org/" | |
| - name: Deploy to S3 | |
| if: github.ref_name == 'staging' | |
| run: hugo deploy --target=s3_staging --maxDeletes -1 --force | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| livebuild: | |
| name: Live Build and Deploy | |
| runs-on: ubuntu-latest | |
| if: github.ref_name == 'main' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: Hugo Setup | |
| #uses: peaceiris/actions-hugo@v2 | |
| uses: deining/actions-hugo@v3.1.0-0 | |
| with: | |
| hugo-version: 'latest' | |
| extended: true | |
| withdeploy: true | |
| - name: Hugo Build | |
| run: hugo --baseURL "https://www.doi.org/" | |
| - name: Deploy to S3 | |
| if: github.ref_name == 'main' | |
| run: hugo deploy --target=s3_live --maxDeletes -1 | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |