summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2024-03-24 09:12:18 +0100
committerGitHub <noreply@github.com>2024-03-24 09:12:18 +0100
commitb59add27040f5436462aa3d34ff3888812fdb117 (patch)
treee7c0543e649b0c3718b0534e406f6b0d38125d48
parent88278d0c0726b758719ac517a2a12a919aba6950 (diff)
Rejbasket/update nodejs version (#2798)
* updated nodejs version to 20 for builds * upgraded actions upload download cache to version 4 * setup-python upgrade to v5 setup-msbuild to v2 * release action change fix nodejs version issue * updated versions checkout and setup-python --------- Co-authored-by: rejbasket <rejbasket@users.noreply.github.com>
-rw-r--r--.github/workflows/build.yml64
-rw-r--r--.github/workflows/translations.yml4
2 files changed, 34 insertions, 34 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8d8667de..a71ef369 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -10,19 +10,19 @@ jobs:
linux:
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: '3.8.x'
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
- node-version: '16.x'
+ node-version: 20
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- - uses: actions/cache@v3
+ - uses: actions/cache@v4
id: pip-cache
with:
path: ~/.cache/pip
@@ -34,7 +34,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- - uses: actions/cache@v3
+ - uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -90,24 +90,24 @@ jobs:
env:
BUILD: linux
INKSTITCH_GPG_KEY: ${{ secrets.INKSTITCH_GPG_KEY }}
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: inkstitch-linux
path: artifacts
windows32:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
- node-version: '16.x'
- - uses: actions/setup-python@v4
+ node-version: 20
+ - uses: actions/setup-python@v5
with:
python-version: '3.8.x'
architecture: 'x86'
- - uses: microsoft/setup-msbuild@v1.3.1
+ - uses: microsoft/setup-msbuild@v2
- name: install dependencies
shell: bash
run: |
@@ -152,24 +152,24 @@ jobs:
with:
certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
folder: 'artifacts'
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: inkstitch-windows32
path: artifacts
windows64:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
- node-version: '16.x'
- - uses: actions/setup-python@v4
+ node-version: 20
+ - uses: actions/setup-python@v5
with:
python-version: '3.8.x'
architecture: 'x64'
- - uses: microsoft/setup-msbuild@v1.3.1
+ - uses: microsoft/setup-msbuild@v2
- name: install dependencies
shell: bash
run: |
@@ -208,22 +208,22 @@ jobs:
with:
certificate: '${{ secrets.INKSTITCH_CODE_SIGNING_CERTIFICATE }}'
folder: 'artifacts'
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: inkstitch-windows64
path: artifacts
mac:
runs-on: macos-12
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: '3.9.x'
- - uses: actions/setup-node@v3
+ - uses: actions/setup-node@v4
with:
- node-version: '16.x'
+ node-version: 20
- name: install dependencies
shell: bash
run: |
@@ -270,7 +270,7 @@ jobs:
NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }}
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
with:
name: inkstitch-mac
path: artifacts
@@ -296,36 +296,36 @@ jobs:
echo "title=development build of $branch" >> $GITHUB_ENV
fi
- name: download linux
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: 'inkstitch-linux'
path: 'artifacts/'
- name: download windows32
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: 'inkstitch-windows32'
path: 'artifacts/'
if: always()
- name: download windows64
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: 'inkstitch-windows64'
path: 'artifacts/'
if: always()
- name: download mac
- uses: actions/download-artifact@v3
+ uses: actions/download-artifact@v4
with:
name: 'inkstitch-mac'
path: 'artifacts/'
if: always()
- name: create/update release
- uses: "marvinpinto/action-automatic-releases@latest"
+ uses: softprops/action-gh-release@v2
if: always()
with:
- repo_token: "${{secrets.GITHUB_TOKEN}}"
- automatic_release_tag: "${{env.release_tag}}"
+ token: "${{secrets.GITHUB_TOKEN}}"
+ tag_name: "${{env.release_tag}}"
prerelease: "${{env.prerelease}}"
- title: "${{env.title}}"
+ name: "${{env.title}}"
files: |
artifacts/*.exe
artifacts/*.pkg
diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml
index e359512c..fbb7b409 100644
--- a/.github/workflows/translations.yml
+++ b/.github/workflows/translations.yml
@@ -6,7 +6,7 @@ jobs:
crowdin:
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
@@ -14,7 +14,7 @@ jobs:
- name: checkout submodules
run: |
git submodule update --init --recursive
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: '3.8.x'
- env: