Mutiny 1.10.0 #40
Workflow file for this run
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
--- | |
name: Deploy releases to Maven Central | |
on: | |
push: | |
branches: | |
- "!*" | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
perform-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.ref }} | |
token: ${{ secrets.RELEASE_TOKEN }} | |
- name: Install JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: maven | |
- name: 'Deploy' | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
REF: ${{ github.event.ref }} | |
SECRET_FILES_PASSPHRASE: ${{ secrets.SECRET_FILES_PASSPHRASE }} | |
run: | | |
echo "Cutting release from ${REF}" | |
sudo apt-get update -o Dir::Etc::sourcelist="sources.list" \ | |
-o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |
sudo apt-get install -y gnupg2 gnupg-agent | |
sh .build/decrypt-secrets.sh | |
sh .build/deploy-release.sh |