Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Nov 25, 2022
1 parent 1ede7f8 commit f8ed098
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,14 @@ jobs:
- name: Make Gradlew Executable
run: chmod +x ./gradlew

# - name: Lint
# run: ./gradlew lint
- name: Lint
run: ./gradlew lint

# - name: Detekt
# run: ./gradlew detekt
- name: Detekt
run: ./gradlew detekt

# - name: Spotless
# run: ./gradlew spotlessCheck
- name: Spotless
run: ./gradlew spotlessCheck

# - name: Build
# run: ./gradlew compileDebugKotlin

# check and text:
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
- name: Build
run: ./gradlew compileDebugKotlin
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
artifacts: "release.tar.gz,foo/*.txt"

0 comments on commit f8ed098

Please sign in to comment.