Skip to content

Merge pull request #15 from 2BAB/dev #37

Merge pull request #15 from 2BAB/dev

Merge pull request #15 from 2BAB/dev #37

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
polyfill-release:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Prepare environment
env:
SIGNING_SECRET_KEY_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_CONTENT }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
run: |
git fetch --unshallow
sudo bash -c "echo '$SIGNING_SECRET_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
- name: Build & Release all Polyfill libraries to MavenCentral
run: chmod +x ./publish.sh | ./publish.sh
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
SIGNING_SECRET_KEY_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_CONTENT }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GH_DEV_TOKEN: ${{ secrets.GH_DEV_TOKEN }}
- name: Upload Github Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: build/libs/