Skip to content

Commit

Permalink
Switch back to release workflow using tags
Browse files Browse the repository at this point in the history
The token doesn't have push access, so I can't do the tagging or gh-pages pushes from the workflow
  • Loading branch information
ajoberstar committed Sep 19, 2020
1 parent 576d3cf commit ed5b793
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
name: Release
on:
workflow_dispatch:
inputs:
scope:
description: "Scope to use for reckoning version"
required: true
default: "minor"
stage:
description: "Stage to use for reckoning version"
required: true
default: "rc"
push:
tags:
- "*"
jobs:
check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,7 +34,7 @@ jobs:
path: "~/.gradle/caches"
key: "gradle-caches-${{ runner.os }}-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}"
- name: "Gradle check"
run: "./gradlew check --continue -Preckon.scope=${{ github.event.inputs.scope }} -Preckon.stage=${{ github.event.inputs.stage }}"
run: "./gradlew check --continue"
publish:
runs-on: ubuntu-latest
needs: check
Expand Down Expand Up @@ -71,4 +64,4 @@ jobs:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
GRADLE_OPTS: "-Dorg.gradle.project.gradle.publish.key=${{ secrets.GRADLE_PLUGIN_KEY }} -Dorg.gradle.project.gradle.publish.secret=${{ secrets.GRADLE_PLUGIN_SECRET }}"
run: "./gradlew reckonTagPush publish publishPlugins -Preckon.scope=${{ github.event.inputs.scope }} -Preckon.stage=${{ github.event.inputs.stage }}"
run: "./gradlew gitPublishPush publish publishPlugins"

0 comments on commit ed5b793

Please sign in to comment.