Skip to content

Commit

Permalink
Upgrade GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Nov 11, 2024
1 parent 23c06da commit c97acc0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,39 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v3
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
- run: npm ci
- run: npm run docs
- name: Upload docs to Toolforge
uses: garygrossgarten/github-action-scp@dba89d858413133b6e35da91a3c989cc8cde3ad4
uses: appleboy/scp-action@9ba62064d28ce0897a970e72cdfe30b9fde2fe48
with:
local: /home/runner/work/twinkle-core/twinkle-core/docs
remote: /data/project/twinkle/www/static/core-docs
source: ${{github.workspace}}/docs/*
target: /data/project/twinkle/www/static/core-docs
host: login.toolforge.org
username: ${{ secrets.TOOLFORGE_USERNAME }}
privateKey: ${{ secrets.TOOLFORGE_PRIVATE_KEY }}
rmRemote: true
dotfiles: true
key: ${{ secrets.TOOLFORGE_PRIVATE_KEY }}
rm: true

versiondocs:
needs: deploydocs
runs-on: ubuntu-latest
if: ${{github.event_name == 'release'}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Read package.json version
uses: martinbeentjes/npm-get-version-action@master
id: get-version
- name: Save the documentation with version number
uses: garygrossgarten/github-action-ssh@2b10f41b5a33808f6d24eafd253296766308b7c4
uses: appleboy/ssh-action@551964ebda1034f0b5449d74db25c42e371ca1f7
with:
command: >-
script: >-
become twinkle bash -c '
cd /data/project/twinkle/www/static;
cp -r core-docs "core-docs-${{ steps.get-version.outputs.current-version }}";
'
host: login.toolforge.org
username: ${{ secrets.TOOLFORGE_USERNAME }}
privateKey: ${{ secrets.TOOLFORGE_PRIVATE_KEY }}
key: ${{ secrets.TOOLFORGE_PRIVATE_KEY }}
6 changes: 3 additions & 3 deletions .github/workflows/i18n-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
deployi18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # all branches
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: 22
- run: npm ci
- name: Sanitise strings and resolve fallback messages
run: node scripts/build-i18n
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
- run: npm ci
- run: npm run test
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
Expand Down

0 comments on commit c97acc0

Please sign in to comment.