From ccd2ac2f653bef21aaaa498f4823d2e78aa51308 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Tue, 23 Jul 2024 15:46:45 -0500 Subject: [PATCH] Don't double deploy to opensciencegrid anymore --- .../deploy-production-opensciencegrid.yml | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/deploy-production-opensciencegrid.yml diff --git a/.github/workflows/deploy-production-opensciencegrid.yml b/.github/workflows/deploy-production-opensciencegrid.yml deleted file mode 100644 index da0698b7d..000000000 --- a/.github/workflows/deploy-production-opensciencegrid.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Deploy production version of the Website on osg-htc Repo - -on: - push: - branches: - - master - schedule: - - cron: '0 0 * * *' - -jobs: - Build-And-Deploy-Production: - if: ${{ github.repository_owner == 'osg-htc' }} - runs-on: ubuntu-latest - env: - CNAME: opensciencegrid.org - production_url: https://github.com/opensciencegrid/opensciencegrid.github.io - OVERRIDE_CONFIG: _config_opensciencegrid_org.yml - - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Setup SSH Keys and known_hosts - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.OPENSCIENCEGRID_ORG_DEPLOY_KEY }} - - - name: Initialize GH User - run: | - git config user.name "GitHub Actions " - git config user.email "actions@github.com" - - - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6 - bundler-cache: true - - - name: Build and Deploy - run: | - # Build the production version of website - JEKYLL_ENV=production bundle exec jekyll build --config _config.yml,${{ env.OVERRIDE_CONFIG }} - - # Add in the appropriate CNAME file - echo "${{ env.CNAME }}" > _site/CNAME - - # Commit the build then use 'git subtree' to create a branch with just the _site contents - git add _site -f - git commit -m "Build Production Website" - git checkout -b split-branch `git subtree split --prefix _site master` - - # Push to Production - git push ${{ env.production_url }} HEAD:from-osg-htc --force