Skip to content

Commit

Permalink
build: Update GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 6, 2024
1 parent fad863a commit 52ca204
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ jobs:
VERSION: ${{ steps.vars.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cancel previous run
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Version
id: vars
Expand All @@ -35,24 +40,28 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
pattern: artifact-*
merge-multiple: true
path: out/jreleaser/assemble/helloworld/archive

- name: Release
uses: jreleaser/release-action@v2
with:
arguments: release -PartifactsDir=artifacts -PskipArchiveResolver
arguments: release
env:
JRELEASER_PROJECT_VERSION: ${{ needs.precheck.outputs.VERSION }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: jreleaser-release
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
VERSION: ${{ steps.vars.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cancel previous run
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -40,12 +40,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
pattern: artifact-*
merge-multiple: true
path: out/jreleaser/assemble/helloworld/archive

- name: Commit version
run: |
Expand All @@ -59,14 +63,14 @@ jobs:
- name: Release
uses: jreleaser/release-action@v2
with:
arguments: release -PartifactsDir=artifacts -PskipArchiveResolver
arguments: release
env:
JRELEASER_PROJECT_VERSION: ${{ needs.precheck.outputs.VERSION }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: jreleaser-release
path: |
Expand Down
25 changes: 12 additions & 13 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Swift
uses: swift-actions/setup-swift@v1.22.0
uses: swift-actions/setup-swift@v1
with:
swift-version: '5'

Expand All @@ -36,20 +36,19 @@ jobs:
JRELEASER_PROJECT_VERSION: ${{ inputs.version }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
retention-days: 1
name: artifacts
path: |
out/jreleaser/assemble/helloworld/archive/*.zip
- name: JReleaser output
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: jreleaser-${{ runner.os }}
name: jreleaser-assemble-${{ runner.os }}-${{ runner.arch }}
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: artifact-${{ runner.os }}-${{ runner.arch }}
path: |
out/jreleaser/assemble/helloworld/archive/*.zip

0 comments on commit 52ca204

Please sign in to comment.