Skip to content

Commit

Permalink
bump gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
luechtdiode committed Mar 29, 2024
1 parent a97382f commit 9a77e5f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand All @@ -45,7 +45,7 @@ jobs:
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Setup NPM
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build Mobile-App
Expand All @@ -59,11 +59,11 @@ jobs:
mkdir ./src/main/resources/app
cp -R -f ./newclient/resultcatcher/www/* ./src/main/resources/app
- name: Autocommit Client
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: update with generated Client from Github Actions CI for build ${{env.GITHUB_RUN_NUMBER}} with [skip ci]
- name: Archive client-modifications
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: |
Expand All @@ -74,15 +74,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- run: git checkout $(git log --branches -1 --pretty=format:'%D' | sed 's/.*, //g')
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -93,7 +93,7 @@ jobs:
env:
OS: Linux
- name: Download client modifications
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: src
path: src/main/resources/app
Expand All @@ -105,14 +105,14 @@ jobs:
env:
OS: Linux
- name: Archive linux application jar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: app
path: |
target/*.jar
target/dependency
- name: Archive production artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-app
path: |
Expand All @@ -124,21 +124,21 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- run: git checkout $(git log --branches -1 --pretty=format:'%D' | sed 's/.*, //g')
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Download client modifications
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: src
path: src/main/resources/app
Expand All @@ -150,7 +150,7 @@ jobs:
OS: Win64
shell: bash
- name: Archive production artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: win64-app
path: |
Expand All @@ -162,15 +162,15 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- run: git checkout $(git log --branches -1 --pretty=format:'%D' | sed 's/.*, //g')
- name: Cache Maven packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Expand All @@ -183,7 +183,7 @@ jobs:
env:
OS: Darwin
- name: Download client modifications
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: src
path: src/main/resources/app
Expand All @@ -195,7 +195,7 @@ jobs:
env:
OS: Darwin
- name: Archive production artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: osx-app
path: |
Expand Down Expand Up @@ -229,15 +229,15 @@ jobs:
echo "SOURCE_TAG=$COMMIT_TAG" >> $GITHUB_OUTPUT
echo "SOURCE_BRANCH=$COMMIT_BRANCH" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- run: git checkout $(git log --branches -1 --pretty=format:'%D' | sed 's/.*, //g')
- name: Download prepared linux application jar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app
path: target
Expand Down Expand Up @@ -267,14 +267,14 @@ jobs:
needs: [build-lnx-distribution, build-win64-distribution, build-osx-distribution, build-docker-distribution]
runs-on: ubuntu-latest
steps:
- uses: geekyeggo/delete-artifact@v2
- uses: geekyeggo/delete-artifact@v5
with:
useGlob: false
name: |
app
src
- name: Download a single artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: dist
- name: Release
Expand Down

0 comments on commit 9a77e5f

Please sign in to comment.