Skip to content

Commit

Permalink
update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pepegar committed Jan 7, 2021
1 parent 7eacd6d commit 24dbf2a
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
name: Release

on:
release:
types: [published]
push:
branches: master

branches: [master, main]
tags: ["*"]
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout project
uses: actions/checkout@v2
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags
- name: Setup Scala
uses: olafurpg/setup-scala@v10
- name: Setup Ruby
uses: actions/setup-ruby@v1
- name: Setup GPG
uses: olafurpg/setup-gpg@v3
- name: Release new version
run: sbt ci-release
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v3
- run: sbt ci-release
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 24dbf2a

Please sign in to comment.