diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3b4761f..9a8c986 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,21 +6,6 @@ on: - main jobs: - deploy-eden: - runs-on: self-hosted - steps: - - name: Checkout Code - uses: actions/checkout@v2 - - - name: Deploy EDEN - if: ${{ github.event_name == 'push' && (contains(github.event.head_commit.message, 'website') || contains(join(github.event.commits.*.modified, ''), 'website/')) }} - env: - TARGET_PATH: /var/www/edend12.imtbs-tsp.eu - run: | - rm -rf $TARGET_PATH.bak - cp -R $TARGET_PATH $TARGET_PATH.bak - cp -R ./website $TARGET_PATH - copy-proxy-config: runs-on: self-hosted steps: @@ -64,4 +49,20 @@ jobs: run: | rm -rf $TARGET_PATH.bak cp -R $TARGET_PATH $TARGET_PATH.bak - cp -R ./dns $TARGET_PATH \ No newline at end of file + cp -R ./dns $TARGET_PATH + + deploy-eden: + runs-on: self-hosted + needs: [copy-proxy-config, copy-tofu-config, copy-dns-config] + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Deploy EDEN + if: ${{ github.event_name == 'push' && (contains(github.event.head_commit.message, 'website') || contains(join(github.event.commits.*.modified, ''), 'website/')) }} + env: + TARGET_PATH: /var/www/edend12.imtbs-tsp.eu + run: | + rm -rf $TARGET_PATH.bak + cp -R $TARGET_PATH $TARGET_PATH.bak + cp -R ./website $TARGET_PATH \ No newline at end of file