Skip to content

Commit

Permalink
maintenance: Update github actions (#723)
Browse files Browse the repository at this point in the history
* Update action versions

* Deploy docs action fix branch name extraction

* Deploy docs action fix branch name extraction
  • Loading branch information
l7ssha authored Oct 25, 2024
1 parent e5c24ed commit 5d60dcc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand All @@ -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') }}
Expand All @@ -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') }}
Expand All @@ -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') }}
Expand All @@ -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') }}
Expand Down

0 comments on commit 5d60dcc

Please sign in to comment.