From ba69cd34e0ab862e2ded371b7523b5f90534f733 Mon Sep 17 00:00:00 2001 From: "Zhian N. Kamvar" Date: Mon, 8 May 2023 08:12:33 -0700 Subject: [PATCH] [automation] final workbench updates --- .github/workflows/workbench-beta-phase.yml | 60 ---------------------- config.yaml | 7 ++- 2 files changed, 3 insertions(+), 64 deletions(-) delete mode 100644 .github/workflows/workbench-beta-phase.yml diff --git a/.github/workflows/workbench-beta-phase.yml b/.github/workflows/workbench-beta-phase.yml deleted file mode 100644 index 2faa25d9..00000000 --- a/.github/workflows/workbench-beta-phase.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: "Deploy to AWS" - -on: - workflow_run: - workflows: ["01 Build and Deploy Site"] - types: - - completed - workflow_dispatch: - -jobs: - preflight: - name: "Preflight Check" - runs-on: ubuntu-latest - outputs: - ok: ${{ steps.check.outputs.ok }} - folder: ${{ steps.check.outputs.folder }} - steps: - - id: check - run: | - if [[ -z "${{ secrets.DISTRIBUTION }}" || -z "${{ secrets.AWS_ACCESS_KEY_ID }}" || -z "${{ secrets.AWS_SECRET_ACCESS_KEY }}" ]]; then - echo ":information_source: No site configured" >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - echo 'To deploy the preview on AWS, you need the `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `DISTRIBUTION` secrets set up' >> $GITHUB_STEP_SUMMARY - else - echo "::set-output name=folder::"$(sed -E 's^.+/(.+)^\1^' <<< ${{ github.repository }}) - echo "::set-output name=ok::true" - fi - - full-build: - name: "Deploy to AWS" - needs: [preflight] - if: ${{ needs.preflight.outputs.ok }} - runs-on: ubuntu-latest - steps: - - - name: "Checkout site folder" - uses: actions/checkout@v3 - with: - ref: 'gh-pages' - path: 'source' - - - name: "Deploy to Bucket" - uses: jakejarvis/s3-sync-action@v0.5.1 - with: - args: --acl public-read --follow-symlinks --delete --exclude '.git/*' - env: - AWS_S3_BUCKET: preview.carpentries.org - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - SOURCE_DIR: 'source' - DEST_DIR: ${{ needs.preflight.outputs.folder }} - - - name: "Invalidate CloudFront" - uses: chetan/invalidate-cloudfront-action@master - env: - PATHS: /* - AWS_REGION: 'us-east-1' - DISTRIBUTION: ${{ secrets.DISTRIBUTION }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/config.yaml b/config.yaml index b40472cc..03308afd 100644 --- a/config.yaml +++ b/config.yaml @@ -14,7 +14,7 @@ carpentry: 'lc' title: 'Python Intro for Libraries' # Date the lesson was created (YYYY-MM-DD, this is empty by default) -created: +created: '2018-04-12' # Comma-separated list of keywords for the lesson keywords: 'software, data, lesson, The Carpentries' @@ -27,7 +27,7 @@ life_cycle: 'stable' license: 'CC-BY 4.0' # Link to the source repository for this lesson -source: 'https://github.com/fishtree-attempt/lc-python-intro/' +source: 'https://github.com/librarycarpentry/lc-python-intro' # Default branch of your lesson branch: 'main' @@ -92,7 +92,6 @@ profiles: # sandpaper and varnish versions) should live -url: https://preview.carpentries.org/lc-python-intro +url: 'https://librarycarpentry.github.io/lc-python-intro' analytics: carpentries lang: en -workbench-beta: 'true'