mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-20 14:37:03 +01:00
fix deploy workflow 3
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -2,11 +2,9 @@ name: "Deploy"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["ci.yml"]
|
workflows: [ "Continuous Integration" ]
|
||||||
types:
|
types: [ "completed" ]
|
||||||
- "completed"
|
branches: [ "master" ]
|
||||||
branches:
|
|
||||||
- "master"
|
|
||||||
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -16,15 +14,15 @@ jobs:
|
|||||||
check-early-exit:
|
check-early-exit:
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
outputs:
|
outputs:
|
||||||
should_deploy: "${{ steps.check-early-exit.outputs.should_deploy }}"
|
should-deploy: "${{ steps.check-early-exit.outputs.should-deploy }}"
|
||||||
steps:
|
steps:
|
||||||
- run: "echo ${{ github.ref }}"
|
- run: "echo ${{ github.ref }}"
|
||||||
- run: "echo ${{ github.ref }} | grep -q -v -E '^refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+$' && echo '::set-output name=should_deploy::false' || echo '::set-output name=should_deploy::true'"
|
- run: "echo ${{ github.ref }} | grep -q -v -E '^refs/tags/v[0-9]+\\.[0-9]+\\.[0-9]+' && echo '::set-output name=should-deploy::false' || echo '::set-output name=should-deploy::true'"
|
||||||
deploy:
|
deploy:
|
||||||
concurrency: "ci-${{ github.ref }}" # Recommended if you intend to make multiple deployments in quick succession.
|
concurrency: "ci-${{ github.ref }}" # Recommended if you intend to make multiple deployments in quick succession.
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
needs: "check-early-exit"
|
needs: "check-early-exit"
|
||||||
if: "needs.check-early-exit.outputs.should_deploy == 'true'"
|
if: "needs.check-early-exit.outputs.should-deploy == 'true'"
|
||||||
steps:
|
steps:
|
||||||
- uses: "dawidd6/action-download-artifact@v3"
|
- uses: "dawidd6/action-download-artifact@v3"
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user