Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Oct 17, 2024
1 parent 6b03ded commit 8fe3405
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/continuous-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Continuous Builder
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- 'metadata/**'
- 'legal/**'
Expand All @@ -13,18 +15,17 @@ on:

jobs:
build:
if: "!contains(github.event.head_commit.message, 'v: Version')"
name: Continuous Builder
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'

- name: Build APK
run: |
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/release-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
uses: mikepenz/release-changelog-builder-action@v5
with:
failOnError: true
commitMode: true
Expand Down Expand Up @@ -81,18 +81,21 @@ jobs:
env:
CHANGELOG: ${{ steps.github_release.outputs.changelog }}
run: echo "$CHANGELOG"

- name: Set release name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Set release name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
java-version: '17'

- name: Show root directory
run: ls

- name: Build APK
run: |
Expand All @@ -112,7 +115,7 @@ jobs:
ls
- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: "Version ${{ env.RELEASE_VERSION }}"
body: ${{steps.github_release.outputs.changelog}}
Expand Down

0 comments on commit 8fe3405

Please sign in to comment.