Skip to content

use automatic github token for release drafter #105

use automatic github token for release drafter

use automatic github token for release drafter #105

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: coursier/cache-action@v5
- name: Check/Compile/Test
run: sbt versionCheck check
- name: Release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: sbt ci-release
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems
restore-keys: |
${{ runner.os }}-gems
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install jekyll
run: |
export GEM_HOME=${PWD}/vendor/bundle
gem install jekyll -v 4.0.0
- name: Publish Microsite
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< "${DEPLOY_KEY}"
git config --global user.email "[email protected]"
git config --global user.name "scala-server-toolkit bot"
export PATH="${PWD}/vendor/bundle/bin:$PATH"
export GEM_HOME=${PWD}/vendor/bundle
sbt site/publishMicrosite