diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index df772fc89..fd3223bb1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,16 +44,21 @@ jobs: uses: actions/checkout@v3 with: repository: DefangLabs/defang - path: ../defang + path: defang ref: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.version || 'main' }} - name: Checkout DefangLabs/samples uses: actions/checkout@v3 with: repository: DefangLabs/samples - path: ../samples + path: samples ref: main + - name: symlink samples and defang + run: | + ln -s ../defang defang + ln -s ../samples samples + - name: Set up Go uses: actions/setup-go@v2 with: diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index f90969985..a785b4698 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -25,16 +25,21 @@ jobs: uses: actions/checkout@v3 with: repository: DefangLabs/defang - path: ../defang + path: defang ref: main - name: Checkout DefangLabs/samples uses: actions/checkout@v3 with: repository: DefangLabs/samples - path: ../samples + path: samples ref: main + - name: symlink samples and defang + run: | + ln -s ../defang defang + ln -s ../samples samples + - name: Set up Go uses: actions/setup-go@v2 with: