diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 747b8b7be..3e5c12d21 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,13 +1,15 @@ name: Build and deploy docs -on: - push: - branches: [main] +on: + release: + types: [published] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v2.3.1 + with: + ref: release - name: Build docs run: | @@ -18,4 +20,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.0 with: branch: gh-pages - folder: docs/build \ No newline at end of file + folder: docs/build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0a9b16ee..b58c0373a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ jobs: uses: griffithlab/civic-v2/.github/workflows/build_frontend.yml@main with: branch: release - deploy-staging: + deploy-production: uses: griffithlab/civic-v2/.github/workflows/deploy.yml@main needs: build-production with: