Update mdoc, sbt-mdoc to 2.6.1 #368
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Don't edit this file! | |
# It is automatically updated after every release of https://github.com/47degrees/.github | |
# If you want to suggest a change, please open a PR or issue in that repository | |
name: Release | |
on: | |
release: | |
types: [published] | |
push: | |
branches: main | |
jobs: | |
release: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Fetch tags | |
run: git fetch --tags | |
- name: Setup Scala | |
uses: olafurpg/setup-scala@v11 | |
with: | |
java-version: [email protected] | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: .ruby-version | |
- name: Setup GPG | |
uses: olafurpg/setup-gpg@v3 | |
- name: Setup yq | |
run: sudo snap install yq | |
- name: Run pre-conditions | |
run: test -f .github/actions.yml && eval "$(yq e '.pre.release // "true"' .github/actions.yml)" || true | |
- name: Release new version | |
run: sbt ci-publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
- name: Run post-conditions | |
run: test -f .github/actions.yml && eval "$(yq e '.post.release // "true"' .github/actions.yml)" || true |