-
Notifications
You must be signed in to change notification settings - Fork 62
39 lines (37 loc) · 1.24 KB
/
release-js.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release Scala.js
on:
push:
tags:
- v*
jobs:
publish_js:
name: Publish Scala.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v5
with:
java-version: adopt@1.11
- uses: olafurpg/setup-gpg@v2 # Necessary for using GPG1
- name: Setup GPG
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: echo $PGP_SECRET | base64 --decode | gpg --import --batch --yes
- uses: actions/cache@v1
with:
path: ~/.cache
key: ${{ runner.os }}-release-js-${{ hashFiles('**/*.sbt') }}
restore-keys: ${{ runner.os }}-release-js-
- name: Build for Scala.js 0.6.x
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
run: SCALA_JS_VERSION=0.6.31 ./sbt "projectJS/publishSigned"
- name: Build for Scala.js 1.0.x
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
run: SCALA_JS_VERSION=1.0.0-M8 ./sbt "projectJS/publishSigned"
- name: Release to Sonatype
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
run: SCALA_JS_VERSION=1.0.0-M8 ./sbt sonatypeBundleRelease