Skip to content

Commit

Permalink
fix: workflow enhancements and upgrade (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <[email protected]>
  • Loading branch information
amagyar-iohk authored Jun 29, 2024
1 parent a642ae0 commit a511d24
Show file tree
Hide file tree
Showing 5 changed files with 2,857 additions and 2,495 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ permissions:

jobs:
release-page:
if: contains(github.event.commit.message, 'chore(release):') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Dokka
run: ./gradlew dokkaHtml

Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Build and test

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-e2e-tests
cancel-in-progress: true

on:
pull_request:
branches:
Expand All @@ -16,10 +12,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Build and test
run: ./gradlew build
Expand All @@ -28,8 +24,7 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
build/test-results/**/*.xml
files: build/test-results/**/*.xml

- name: Publish Detekt Results
run: cat build/reports/detekt/detekt.md >> $GITHUB_STEP_SUMMARY
17 changes: 3 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ jobs:
release-atala-automation:
name: "Release"
runs-on: ubuntu-latest
env:
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
uses: actions/checkout@v4

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
Expand Down
Loading

0 comments on commit a511d24

Please sign in to comment.