diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 58a736d6..e1163dfb 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -14,10 +14,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} @@ -30,17 +30,12 @@ jobs: - name: Generate docs run: dart doc - - name: Extract branch name - shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" - id: extract_branch - - name: Deploy nyxx dev docs - uses: easingthemes/ssh-deploy@v2.1.5 + uses: easingthemes/ssh-deploy@v5.1.0 env: ARGS: "-rltDzvO" SOURCE: "doc/api/" - TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ steps.extract_branch.outputs.branch }}/" + TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ github.head_ref || github.ref_name }}/" with: REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }} REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a6976a8b..b6025c11 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v2 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8beb306..94c06702 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,10 +16,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} @@ -40,10 +40,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} @@ -64,10 +64,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} @@ -93,10 +93,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }} @@ -122,10 +122,10 @@ jobs: uses: dart-lang/setup-dart@v1 - name: Checkout - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pub-cache key: ${{ runner.os }}-pubspec-${{ hashFiles('**/pubspec.lock') }}