diff --git a/.github/workflows/deploy.yml b/.github/workflows/_deploy_astro_site.yml similarity index 88% rename from .github/workflows/deploy.yml rename to .github/workflows/_deploy_astro_site.yml index 023e5a3bb..5c1c912e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/_deploy_astro_site.yml @@ -1,22 +1,13 @@ -name: Deploy (sigpwny.com) +name: Deploy Astro Site + on: - push: - paths: - - _global/** - - sigpwny.com/** -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + workflow_call: jobs: deploy: runs-on: ubuntu-latest permissions: contents: read deployments: write - env: - CI: true - CI_WORKING_DIR: sigpwny.com - CI_BUILD_DIR: dist steps: - name: Check out repository code uses: actions/checkout@v3 diff --git a/.github/workflows/deploy-fallctf.yml b/.github/workflows/deploy-fallctf.yml new file mode 100644 index 000000000..5f699009e --- /dev/null +++ b/.github/workflows/deploy-fallctf.yml @@ -0,0 +1,14 @@ +name: Deploy (fallctf.com) +on: + push: + paths: + - _global/** + - fallctf.com/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +env: + CI: true + CI_WORKING_DIR: fallctf.com + CI_BUILD_DIR: dist +uses: ./.github/workflows/_deploy_astro_site.yml \ No newline at end of file diff --git a/.github/workflows/deploy-sigpwny.yml b/.github/workflows/deploy-sigpwny.yml new file mode 100644 index 000000000..7e073ecc2 --- /dev/null +++ b/.github/workflows/deploy-sigpwny.yml @@ -0,0 +1,14 @@ +name: Deploy (sigpwny.com) +on: + push: + paths: + - _global/** + - sigpwny.com/** +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +env: + CI: true + CI_WORKING_DIR: sigpwny.com + CI_BUILD_DIR: dist +uses: ./.github/workflows/_deploy_astro_site.yml \ No newline at end of file