Skip to content

Commit

Permalink
fix: workflow enhancements and upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
  • Loading branch information
amagyar-iohk committed Jun 29, 2024
1 parent a642ae0 commit 2af6381
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ 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: Dokka
run: ./gradlew dokkaHtml

Expand Down
12 changes: 2 additions & 10 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,7 @@ jobs:

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

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
uses: actions/checkout@v4

- name: Build and test
run: ./gradlew build
Expand All @@ -28,8 +21,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
16 changes: 1 addition & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,10 @@ 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/*"

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
uses: actions/checkout@v4

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

0 comments on commit 2af6381

Please sign in to comment.