Skip to content

Commit

Permalink
Update PUBLISH.md and Fix github action
Browse files Browse the repository at this point in the history
Signed-off-by: FabioPinheiro <fabiomgpinheiro@gmail.com>
  • Loading branch information
FabioPinheiro committed Apr 30, 2024
1 parent 0fea7a3 commit 21e3ce1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: CI
on:
workflow_dispatch:
inputs:
make_release:
description: "Publish the libraries (make a release)"
make_snapshot_release:
description: "Publish libraries's SNAPSHOT"
default: false
type: boolean
required: false
pull_request:
branches-ignore:
- "gh-pages"
push:
branches:
- "master"
branches: [master, main]
tags: ["v*"]

jobs:
Run-Tests:
Expand All @@ -25,7 +25,7 @@ jobs:
with:
fetch-depth: 0 # Needed for the release tag // `git fetch --tags` will also work
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v13
uses: olafurpg/setup-scala@v14
- name: Setup Node
uses: actions/setup-node@v2
with:
Expand All @@ -40,7 +40,7 @@ jobs:
# NODE_OPTIONS: "--openssl-legacy-provider"

- name: Release
if: (inputs.make_release == true) && (github.ref_name == 'master')
if: ((inputs.make_snapshot_release == true) && (github.ref_name == 'master') || startsWith(github.ref, 'refs/tags/v'))
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 21e3ce1

Please sign in to comment.